From bb6bd2f7ea37c471c9a6747e1473c7ad1f00a499 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sun, 19 Jun 2011 14:17:53 +0200 Subject: Reduced amount of #ifdef'ed code --- common/debug.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 common/debug.h (limited to 'common/debug.h') 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 */ + -- cgit v1.2.3