Use do { } while(0) instead of empty DBG if not debugging.

This commit is contained in:
Martin Mares 2000-03-12 21:47:25 +00:00
parent 6b9fa32080
commit e68dd11c43

View file

@ -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