diff options
Diffstat (limited to 'common')
-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 */ + |