[Telepathy-commits] [telepathy-glib/master] tests/lib/debug.h: add a simplified version of DEBUG() that tests can use

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Oct 7 07:00:38 PDT 2008


---
 tests/lib/Makefile.am |    1 +
 tests/lib/debug.h     |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
 create mode 100644 tests/lib/debug.h

diff --git a/tests/lib/Makefile.am b/tests/lib/Makefile.am
index 3dde6d1..7762c15 100644
--- a/tests/lib/Makefile.am
+++ b/tests/lib/Makefile.am
@@ -1,6 +1,7 @@
 noinst_LTLIBRARIES = libtp-glib-tests.la
 
 libtp_glib_tests_la_SOURCES = \
+    debug.h \
     myassert.h \
     simple-conn.c \
     simple-conn.h \
diff --git a/tests/lib/debug.h b/tests/lib/debug.h
new file mode 100644
index 0000000..60e070b
--- /dev/null
+++ b/tests/lib/debug.h
@@ -0,0 +1,3 @@
+#undef DEBUG
+#define DEBUG(format, ...) \
+  g_debug ("%s: " format, G_STRFUNC, ##__VA_ARGS__)
-- 
1.5.6.5




More information about the Telepathy-commits mailing list