Fix the silliest of issues in utils.c
This commit is contained in:
parent
0fb4a3cb34
commit
49600a082b
6
utils.c
6
utils.c
|
@ -129,10 +129,14 @@ log_message (void *user_data, const char *quote, const char *fmt, ...)
|
||||||
static bool g_debug_mode; ///< Debug messages are printed
|
static bool g_debug_mode; ///< Debug messages are printed
|
||||||
static bool g_soft_asserts_are_deadly; ///< soft_assert() aborts as well
|
static bool g_soft_asserts_are_deadly; ///< soft_assert() aborts as well
|
||||||
|
|
||||||
|
#ifndef print_debug_data
|
||||||
|
#define print_debug_data NULL
|
||||||
|
#endif
|
||||||
|
|
||||||
#define print_debug(...) \
|
#define print_debug(...) \
|
||||||
BLOCK_START \
|
BLOCK_START \
|
||||||
if (g_debug_mode) \
|
if (g_debug_mode) \
|
||||||
log_message ("debug: ", __VA_ARGS__); \
|
log_message (print_debug_data, "debug: ", __VA_ARGS__); \
|
||||||
BLOCK_END
|
BLOCK_END
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue