summaryrefslogtreecommitdiff
path: root/src/mcd-debug.h
diff options
context:
space:
mode:
authorAlberto Mardegan <alberto.mardegan@nokia.com>2009-02-25 16:45:16 +0200
committerAlberto Mardegan <alberto.mardegan@nokia.com>2009-02-25 16:45:16 +0200
commit647435242c1f02b4fc75c4e6c4f3d21acb28fd6f (patch)
treef9b51b1f2f2bbeca0b0a803eaa685d6756c186ea /src/mcd-debug.h
parent1b0c4aac56a8de91d512432d4bb63dfcfe097096 (diff)
downloadtelepathy-mission-control-647435242c1f02b4fc75c4e6c4f3d21acb28fd6f.tar.gz
Debug object references only if --enable-debug is given
Move the macros into the ENABLE_DEBUG condition.
Diffstat (limited to 'src/mcd-debug.h')
-rw-r--r--src/mcd-debug.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mcd-debug.h b/src/mcd-debug.h
index 5a34b91a..85e5e7b5 100644
--- a/src/mcd-debug.h
+++ b/src/mcd-debug.h
@@ -40,15 +40,16 @@ G_BEGIN_DECLS
g_debug (format, ##__VA_ARGS__); \
} while (0)
+/* reference count debugging */
+#define g_object_ref(obj) (mcd_debug_ref (obj, __FILE__, __LINE__))
+#define g_object_unref(obj) (mcd_debug_unref (obj, __FILE__, __LINE__))
+
#else /* !defined ENABLE_DEBUG */
#define DEBUG(format, ...) do {} while (0)
#endif /* ENABLE_DEBUG */
-#define g_object_ref(obj) (mcd_debug_ref (obj, __FILE__, __LINE__))
-#define g_object_unref(obj) (mcd_debug_unref (obj, __FILE__, __LINE__))
-
void mcd_debug_init (void);
inline gint mcd_debug_get_level (void);