diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-06-19 14:17:53 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-06-19 14:29:03 +0200 |
commit | bb6bd2f7ea37c471c9a6747e1473c7ad1f00a499 (patch) | |
tree | 1ca093019ea99b2a358243fad64e6284cf77b21e /common/debug.h | |
parent | 83171b606a49b7e7b68c86901a12f7e5eded96aa (diff) |
Reduced amount of #ifdef'ed code
Diffstat (limited to 'common/debug.h')
-rw-r--r-- | common/debug.h | 12 |
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 */ + |