summaryrefslogtreecommitdiffstats
path: root/mp_msg.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-07-29 18:34:13 +0200
committerwm4 <wm4@nowhere>2012-07-30 01:40:42 +0200
commit7349d39938ae61b90778ddef5cf427e37cd96c75 (patch)
treed6ec0288c003c73601958d249346f0fd81eb2054 /mp_msg.h
parent6009965cdd7984245188e3c7e68e28d60dd06078 (diff)
downloadmpv-7349d39938ae61b90778ddef5cf427e37cd96c75.tar.bz2
mpv-7349d39938ae61b90778ddef5cf427e37cd96c75.tar.xz
configure, mp_msg.h: get rid of MP_DEBUG
The function mp_dbg() was silent if MP_DEBUG was not defined. MP_DEBUG was defined only if configure was invoked with --enable-debug. Remove it and make mp_dbg an alias to mp_msg. This has the advantage tha --enable-debug changes less. (It only adds -g now and disables stripping the binary on installation.) Using log levels is the better way to silence annoying debug messages.
Diffstat (limited to 'mp_msg.h')
-rw-r--r--mp_msg.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/mp_msg.h b/mp_msg.h
index 686ed8316c..3edd9aba8f 100644
--- a/mp_msg.h
+++ b/mp_msg.h
@@ -138,17 +138,7 @@ void mp_msg_va(int mod, int lev, const char *format, va_list va);
void mp_msg(int mod, int lev, const char *format, ... ) PRINTF_ATTRIBUTE(3, 4);
void mp_tmsg(int mod, int lev, const char *format, ... ) PRINTF_ATTRIBUTE(3, 4);
-static inline void mp_dbg(int mod, int lev, const char *format, ...) PRINTF_ATTRIBUTE(3, 4);
-
-static inline void mp_dbg(int mod, int lev, const char *format, ...)
-{
-#ifdef MP_DEBUG
- va_list va;
- va_start(va, format);
- mp_msg_va(mod, lev, format, va);
- va_end(va);
-#endif
-}
+#define mp_dbg mp_msg
const char* filename_recode(const char* filename);