summaryrefslogtreecommitdiff
path: root/telepathy-glib/debug-internal.h
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-07-07 17:45:31 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-07-07 17:45:31 +0100
commit3e2df72ead78c9f96beb0cefb77e766733a390f1 (patch)
treea0cd153c9ba2481ecce76b4a2fe3fb2de46ae761 /telepathy-glib/debug-internal.h
parent22db42544e3390e3685956c07d5c1ed15309141d (diff)
downloadtelepathy-glib-3e2df72ead78c9f96beb0cefb77e766733a390f1.tar.gz
Make DEBUG a no-op static inline with --disable-debug.
Diffstat (limited to 'telepathy-glib/debug-internal.h')
-rw-r--r--telepathy-glib/debug-internal.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/telepathy-glib/debug-internal.h b/telepathy-glib/debug-internal.h
index 583e3d751..bad08aa7c 100644
--- a/telepathy-glib/debug-internal.h
+++ b/telepathy-glib/debug-internal.h
@@ -100,7 +100,16 @@ G_END_DECLS
G_STRFUNC, ##__VA_ARGS__)
# define DEBUGGING _tp_debug_flag_is_set (DEBUG_FLAG)
#else /* !defined (ENABLE_DEBUG) */
-# define DEBUG(format, ...) do {} while (0)
+# ifndef DEBUG_STUB_DEFINED
+static inline void
+DEBUG (
+ const gchar *format,
+ ...)
+{
+}
+# define DEBUG_STUB_DEFINED 1
+# endif // ifndef DEBUG_STUB_DEFINED
+
# define DEBUGGING 0
#endif /* !defined (ENABLE_DEBUG) */