diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-07-08 15:24:18 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-08-16 11:33:25 +0100 |
commit | 9ec80fc9a1961faa9befcc2097b9c12260fa7594 (patch) | |
tree | 8aa93e89f0f762e95079b2d2c96dfa459f56a6d9 /lib | |
parent | ae5cc6b9b5684ed33420535483c313b1f295f076 (diff) |
Define a static inline no-op DEBUG() with --disable-debug
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gibber/gibber-debug.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/lib/gibber/gibber-debug.h b/lib/gibber/gibber-debug.h index aeef49af..47bd7ba9 100644 --- a/lib/gibber/gibber-debug.h +++ b/lib/gibber/gibber-debug.h @@ -55,17 +55,23 @@ void gibber_debug_stanza (DebugFlags flag, WockyStanza *stanza, #ifdef DEBUG_FLAG -#define DEBUG(format, ...) \ - G_STMT_START { } G_STMT_END +static inline void +DEBUG ( + const gchar *format, + ...) +{ +} -#define DEBUG_STANZA(stanza, format, ...) \ - G_STMT_START { } G_STMT_END +static inline void +DEBUG_STANZA ( + WockyStanza *stanza, + const gchar *format, + ...) +{ +} #define DEBUGGING 0 -#define NODE_DEBUG(n, s) \ - G_STMT_START { } G_STMT_END - #endif /* DEBUG_FLAG */ #endif /* ENABLE_DEBUG */ |