};
/* Check for aborts enabled. */
-static unsigned abort_en()
+static unsigned abort_en(void)
{
if (!mapped_config_file)
{
return ((((char *)mapped_config_file)[0]) - 0x30) & eAssertAbortEn;
}
#else /* WIN32 */
-static unsigned abort_en()
+static unsigned abort_en(void)
{
return !GETENV("GALLIUM_ABORT_ON_ASSERT");
}
void _debug_vprintf(const char *format, va_list ap);
-static void INLINE
+static INLINE void
_debug_printf(const char *format, ...)
{
va_list ap;
* - avoid outputing large strings (512 bytes is the current maximum length
* that is guaranteed to be printed in all platforms)
*/
-static void INLINE
+static INLINE void
debug_printf(const char *format, ...)
{
#ifdef DEBUG
#endif /* !DEBUG */
+long
+debug_get_num_option(const char *name, long dfault);
+
void _debug_assert_fail(const char *expr,
const char *file,
unsigned line,
*/
#ifdef DEBUG
#define debug_checkpoint_full() \
- debug_printf("%s:%u:%s", __FILE__, __LINE__, __FUNCTION__)
+ _debug_printf("%s:%u:%s", __FILE__, __LINE__, __FUNCTION__)
#else
#define debug_checkpoint_full() \
((void)0)