changeset 4065:4bf76111e29e

introduce common debug print macro.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Wed, 05 Dec 2007 05:55:46 +0900
parents 7ecdb78a051e
children 83455611c927
files src/audacious/main.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/main.h	Tue Dec 04 21:43:09 2007 +0100
+++ b/src/audacious/main.h	Wed Dec 05 05:55:46 2007 +0900
@@ -43,6 +43,13 @@
 #define PLAYER_WIDTH \
   (MAINWIN_WIDTH * (cfg.doublesize + 1))
 
+/* macro for debug print */
+#if AUD_DEBUG
+#  define AUDDBG(...) g_print("%s:%d %s(): ", __FILE__, (int)__LINE__, __FUNCTION__), g_print(__VA_ARGS__)
+#else
+#  define AUDDBG(...)
+#endif
+
 struct _BmpConfig {
     gint player_x, player_y;
     gint equalizer_x, equalizer_y;