summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-03-12 21:47:25 +0000
committerMartin Mares <mj@ucw.cz>2000-03-12 21:47:25 +0000
commite68dd11c43ebec527da69da7b093ae90ef6d6ea9 (patch)
tree71e16cb1fc3c07a3b7ccab88dc2868a98b0bbbbb /lib
parent6b9fa320806ce8a734d865ebcb8052ba0e50c527 (diff)
Use do { } while(0) instead of empty DBG if not debugging.
Diffstat (limited to 'lib')
-rw-r--r--lib/birdlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h
index 22695c19..6f053302 100644
--- a/lib/birdlib.h
+++ b/lib/birdlib.h
@@ -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