Mercurial > mplayer.hg
changeset 16621:f84925bd74b1
1000l
gcc 2.95 only works with this kind of define, instead of the C99 one.
author | ods15 |
---|---|
date | Fri, 30 Sep 2005 05:57:59 +0000 |
parents | ab8d8c357696 |
children | 8ce411296da4 |
files | mp_msg.h |
diffstat | 1 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mp_msg.h Thu Sep 29 15:36:16 2005 +0000 +++ b/mp_msg.h Fri Sep 30 05:57:59 2005 +0000 @@ -115,16 +115,20 @@ #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