[Telepathy-commits] [telepathy-mission-control/master] Debug object references only if --enable-debug is given

Alberto Mardegan alberto.mardegan at nokia.com
Wed Feb 25 06:45:16 PST 2009


Move the macros into the ENABLE_DEBUG condition.
---
 src/mcd-debug.h |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/mcd-debug.h b/src/mcd-debug.h
index 5a34b91..85e5e7b 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);
-- 
1.5.6.5




More information about the telepathy-commits mailing list