mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Added INFO() debugging macro.
This commit is contained in:
parent
8542b5bac8
commit
fdb3e194ba
|
@ -51,6 +51,10 @@ unsigned char * hex_string_to_bin(char hex_string[]);
|
||||||
DEBUG_PRINT(__VA_ARGS__, ' '); \
|
DEBUG_PRINT(__VA_ARGS__, ' '); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
#define INFO(...) do { \
|
||||||
|
DEBUG_PRINT(__VA_ARGS__, ' '); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
#undef ERROR
|
#undef ERROR
|
||||||
#define ERROR(exit_status, ...) do { \
|
#define ERROR(exit_status, ...) do { \
|
||||||
fprintf(stderr, "error in "); \
|
fprintf(stderr, "error in "); \
|
||||||
|
@ -59,6 +63,7 @@ unsigned char * hex_string_to_bin(char hex_string[]);
|
||||||
} while (0)
|
} while (0)
|
||||||
#else
|
#else
|
||||||
#define WARNING(...)
|
#define WARNING(...)
|
||||||
|
#define INFO(...)
|
||||||
#undef ERROR
|
#undef ERROR
|
||||||
#define ERROR(...)
|
#define ERROR(...)
|
||||||
#endif // DEBUG
|
#endif // DEBUG
|
||||||
|
|
Loading…
Reference in New Issue
Block a user