aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-06-19 14:17:53 +0200
committerGuido Günther <agx@sigxcpu.org>2011-06-19 14:29:03 +0200
commitbb6bd2f7ea37c471c9a6747e1473c7ad1f00a499 (patch)
tree1ca093019ea99b2a358243fad64e6284cf77b21e /common
parent83171b606a49b7e7b68c86901a12f7e5eded96aa (diff)
Reduced amount of #ifdef'ed code
Diffstat (limited to 'common')
-rw-r--r--common/debug.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/debug.h b/common/debug.h
new file mode 100644
index 0000000..465ca03
--- /dev/null
+++ b/common/debug.h
@@ -0,0 +1,12 @@
+/*
+ * Debugging macros
+ */
+
+#ifdef DEBUG
+#define debug_print(fmt,...) \
+ printf(fmt, ##__VA_ARGS__)
+#else
+#define debug_printf(fmt,...) \
+ do { } while (0)
+#endif /* !DEBUG */
+