summaryrefslogtreecommitdiff
path: root/src/debug.h
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2012-01-26 13:09:47 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2012-01-26 13:09:47 +0000
commite142bebe3e112d715af2b4784b24730eb9c310a0 (patch)
tree594393ed618bf82b4600f61c624de58ad3340ca1 /src/debug.h
parenta2a603bdfb12bc9aa80726bf1f822cc22c76917e (diff)
parent035a6b0a6e8ce1787abf2583bb918436282026fe (diff)
Merge branch 'master' into BYE-BYE-LOUDMOUTH
Conflicts: src/connection.c src/connection.h src/ft-manager.c src/jingle-content.c src/jingle-factory.c src/jingle-session.c src/message-util.c src/muc-channel.c src/muc-channel.h
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h28
1 files changed, 25 insertions, 3 deletions
diff --git a/src/debug.h b/src/debug.h
index f51ad8a55..191a51e1c 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -4,6 +4,8 @@
#include "config.h"
#include <glib.h>
+#include <wocky/wocky-stanza.h>
+#include <loudmouth/loudmouth.h>
G_BEGIN_DECLS
@@ -89,10 +91,30 @@ G_END_DECLS
} G_STMT_END
#else /* !defined (ENABLE_DEBUG) */
-# define DEBUG(format, ...) G_STMT_START { } G_STMT_END
+static inline void
+DEBUG (
+ const gchar *format,
+ ...)
+{
+}
+
# define DEBUGGING 0
-# define STANZA_DEBUG(st, s) G_STMT_START { } G_STMT_END
-# define NODE_DEBUG(n, s) G_STMT_START { } G_STMT_END
+
+static inline void
+STANZA_DEBUG (
+ WockyStanza *stanza,
+ const gchar *format,
+ ...)
+{
+}
+
+static inline void
+NODE_DEBUG (
+ LmMessageNode *node,
+ const gchar *format,
+ ...)
+{
+}
#endif /* !defined (ENABLE_DEBUG) */
#endif /* DEBUG_FLAG */