Mercurial > mplayer.hg
comparison mp_msg.h @ 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 | bad73cd81b23 |
children | 05af35012e4f |
comparison
equal
deleted
inserted
replaced
16620:ab8d8c357696 | 16621:f84925bd74b1 |
---|---|
113 #define mp_gettext(String) String | 113 #define mp_gettext(String) String |
114 #endif | 114 #endif |
115 | 115 |
116 #ifdef __GNUC__ | 116 #ifdef __GNUC__ |
117 void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4))); | 117 void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4))); |
118 # ifdef MP_DEBUG | |
119 # define mp_dbg(mod,lev, args... ) mp_msg(mod, lev, ## args ) | |
120 # else | |
121 # define mp_dbg(mod,lev, args... ) /* only usefull for developers */ | |
122 # endif | |
118 #else // not GNU C | 123 #else // not GNU C |
119 void mp_msg(int mod, int lev, const char *format, ... ); | 124 void mp_msg(int mod, int lev, const char *format, ... ); |
125 # ifdef MP_DEBUG | |
126 # define mp_dbg(mod,lev, ... ) mp_msg(mod, lev, __VA_ARGS__) | |
127 # else | |
128 # define mp_dbg(mod,lev, ... ) /* only usefull for developers */ | |
129 # endif | |
120 #endif | 130 #endif |
121 | 131 |
122 #ifdef MP_DEBUG | |
123 #define mp_dbg(mod,lev, ... ) mp_msg(mod, lev, __VA_ARGS__) | |
124 #else | |
125 // these messages are only usefull for developers, disable them | |
126 #define mp_dbg(mod,lev, ... ) | |
127 #endif | |
128 | 132 |
129 #endif | 133 #endif |
130 #endif | 134 #endif |