From 71c077ae58d18586f9d5f886bef5430443096286 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 6 Jul 2007 13:34:38 +0000 Subject: [PATCH] * Allow to use debug() everywhere in the code; it'll just do nothing in zzuf itself, and will only output stuff in the library. --- src/debug.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/debug.h b/src/debug.h index a1a0428..91dab4c 100644 --- a/src/debug.h +++ b/src/debug.h @@ -19,5 +19,9 @@ extern void _zz_debug(const char *format, ...) __attribute__((__format__(__printf__, 1, 2))); -#define debug _zz_debug +#ifdef LIBZZUF +# define debug _zz_debug +#else +# define debug(...) +#endif