diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2011-01-18 00:21:14 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2011-01-18 00:21:14 +0200 |
commit | 37b756bb70441a42b85aeb075a096fb02b560ab2 (patch) | |
tree | 33441da8d4d40c8ba1501ef12d74bbca50978cf5 /mp_msg.h | |
parent | a4f687e1f0ad1ee3949c2316a8d20d7ba7033d25 (diff) | |
download | mpv-37b756bb70441a42b85aeb075a096fb02b560ab2.tar.bz2 mpv-37b756bb70441a42b85aeb075a096fb02b560ab2.tar.xz |
cleanup: mp_msg.h: simplify mp_dbg definition
There's no need to define the mp_dbg macro differently for the
__GNUC__ and general case.
Diffstat (limited to 'mp_msg.h')
-rw-r--r-- | mp_msg.h | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -142,21 +142,17 @@ void mp_msg_va(int mod, int lev, const char *format, va_list va); #ifdef __GNUC__ void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4))); void mp_tmsg(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 useful for developers */ -# endif #else // not GNU C void mp_msg(int mod, int lev, const char *format, ... ); void mp_tmsg(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 useful for developers */ -# endif #endif /* __GNUC__ */ +#ifdef MP_DEBUG +#define mp_dbg(mod,lev, ... ) mp_msg(mod, lev, __VA_ARGS__) +#else +#define mp_dbg(mod,lev, ... ) /* only useful for developers */ +#endif + const char* filename_recode(const char* filename); #endif /* MPLAYER_MP_MSG_H */ |