45#define dbglog(lvl, ...) \
47 int __dbglog_lvl = (lvl); \
48 if(__dbglog_lvl <= DBGLOG_LEVEL_SUPPORT && __dbglog_lvl <= dbglog_level) \
49 printf(__VA_ARGS__); \
65#define DBG_DISABLED -1
76#define DBG_SOURCE(x) (__is_defined(x) ? DBG_DEAD : DBG_MAX)
92extern int dbglog_level;
Various common macros used throughout the codebase.
void dbglog_set_level(int level)
Set the debugging log level.
Compile-time options regarding debugging and other topics.
Basic sys/stdio.h file from newlib.
int level
Definition wump.c:119