summaryrefslogtreecommitdiffstats
path: root/mp_msg.h
diff options
context:
space:
mode:
authorods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-30 05:57:59 +0000
committerods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-30 05:57:59 +0000
commita114511c8fa392862fb63dd714e5ffdb5927e1c2 (patch)
treef13634333061fae5d7cbda6a701ba8cae7a53ddd /mp_msg.h
parentab0f64bb6cbd0af444a7f0e858e0e2ce546e3f86 (diff)
downloadmpv-a114511c8fa392862fb63dd714e5ffdb5927e1c2.tar.bz2
mpv-a114511c8fa392862fb63dd714e5ffdb5927e1c2.tar.xz
1000l
gcc 2.95 only works with this kind of define, instead of the C99 one. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16622 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp_msg.h')
-rw-r--r--mp_msg.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/mp_msg.h b/mp_msg.h
index 3c63444747..6ea31e4aa5 100644
--- a/mp_msg.h
+++ b/mp_msg.h
@@ -115,16 +115,20 @@ int mp_msg_test(int mod, int lev);
#ifdef __GNUC__
void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4)));
+# ifdef MP_DEBUG
+# define mp_dbg(mod,lev, args... ) mp_msg(mod, lev, ## args )
+# else
+# define mp_dbg(mod,lev, args... ) /* only usefull for developers */
+# endif
#else // not GNU C
void mp_msg(int mod, int lev, const char *format, ... );
+# ifdef MP_DEBUG
+# define mp_dbg(mod,lev, ... ) mp_msg(mod, lev, __VA_ARGS__)
+# else
+# define mp_dbg(mod,lev, ... ) /* only usefull for developers */
+# endif
#endif
-#ifdef MP_DEBUG
-#define mp_dbg(mod,lev, ... ) mp_msg(mod, lev, __VA_ARGS__)
-#else
-// these messages are only usefull for developers, disable them
-#define mp_dbg(mod,lev, ... )
-#endif
#endif
#endif