Commit e68dd11c authored by Martin Mareš's avatar Martin Mareš
Browse files

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

parent 6b9fa320
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment