comparison mp_msg.h @ 18000:3b4e03cb518d

more cruft
author rfelker
date Thu, 30 Mar 2006 22:28:32 +0000
parents 963062e18809
children 4231482179b6
comparison
equal deleted inserted replaced
17999:d096b8febbfa 18000:3b4e03cb518d
107 // va_start/vsnprintf seems to be broken under OS2 :( 107 // va_start/vsnprintf seems to be broken under OS2 :(
108 #define mp_msg(mod,lev, fmt, args... ) do{if((lev)<=mp_msg_levels[mod]) printf( fmt, ## args );}while(0) 108 #define mp_msg(mod,lev, fmt, args... ) do{if((lev)<=mp_msg_levels[mod]) printf( fmt, ## args );}while(0)
109 #define mp_dbg(mod,lev, args... ) 109 #define mp_dbg(mod,lev, args... )
110 #else 110 #else
111 111
112 #ifdef USE_I18N
113 #include <libintl.h>
114 #define mp_gettext(String) gettext(String)
115 #else
116 #define mp_gettext(String) String
117 #endif
118
119 #ifdef __GNUC__ 112 #ifdef __GNUC__
120 void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4))); 113 void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4)));
121 # ifdef MP_DEBUG 114 # ifdef MP_DEBUG
122 # define mp_dbg(mod,lev, args... ) mp_msg(mod, lev, ## args ) 115 # define mp_dbg(mod,lev, args... ) mp_msg(mod, lev, ## args )
123 # else 116 # else