summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-03-12 22:47:25 +0100
committerMartin Mares <mj@ucw.cz>2000-03-12 22:47:25 +0100
commite68dd11c43ebec527da69da7b093ae90ef6d6ea9 (patch)
tree71e16cb1fc3c07a3b7ccab88dc2868a98b0bbbbb /lib
parent6b9fa320806ce8a734d865ebcb8052ba0e50c527 (diff)
downloadbird-e68dd11c43ebec527da69da7b093ae90ef6d6ea9.tar
bird-e68dd11c43ebec527da69da7b093ae90ef6d6ea9.zip
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 22695c1..6f05330 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