Use do { } while(0) instead of empty DBG if not debugging.
This commit is contained in:
parent
6b9fa32080
commit
e68dd11c43
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ void debug(char *msg, ...); /* Printf to debug output */
|
|||
#if defined(LOCAL_DEBUG) || defined(GLOBAL_DEBUG)
|
||||
#define DBG(x, y...) debug(x, ##y)
|
||||
#else
|
||||
#define DBG(x, y...)
|
||||
#define DBG(x, y...) do { } while(0)
|
||||
#endif
|
||||
|
||||
#ifdef DEBUGGING
|
||||
|
|
Loading…
Reference in a new issue