CVS: main mp_msg.h,1.34,1.35
CVS change done by Oded Shimon CVS Update of /cvsroot/mplayer/main In directory mail:/var2/tmp/cvs-serv14715 Modified Files: mp_msg.h Log Message: 1000l gcc 2.95 only works with this kind of define, instead of the C99 one. Index: mp_msg.h =================================================================== RCS file: /cvsroot/mplayer/main/mp_msg.h,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- mp_msg.h 29 Sep 2005 05:21:12 -0000 1.34 +++ mp_msg.h 30 Sep 2005 05:57:59 -0000 1.35 @@ -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
On Friday, 30 September 2005 at 07:58, Oded Shimon CVS wrote: [...]
+# define mp_dbg(mod,lev, args... ) /* only usefull for developers */
usefu_l_ ;) -- MPlayer RPMs maintainer: http://rpm.greysector.net/mplayer/ "I am Grey. I stand between the candle and the star. We are Grey. We stand between the darkness ... and the light." -- Delenn in Grey Council in Babylon 5:"Babylon Squared"
participants (2)
-
Dominik 'Rathann' Mierzejewski -
syncmail@mplayerhq.hu