0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

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