From dfd2a005eb29e4b9f2fdb97036eb7d5c38ae4bd4 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Sat, 29 Jan 2011 17:46:18 +0100 Subject: Replace dprintf with av_dlog dprintf clashes with POSIX.1-2008 --- libavutil/log.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libavutil/log.h') diff --git a/libavutil/log.h b/libavutil/log.h index 3b364bed24..0bcf2c4982 100644 --- a/libavutil/log.h +++ b/libavutil/log.h @@ -135,6 +135,17 @@ void av_log_set_callback(void (*)(void*, int, const char*, va_list)); void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl); const char* av_default_item_name(void* ctx); +/** + * av_dlog macros + * Useful to print debug messages that shouldn't get compiled in normally. + */ + +#ifdef DEBUG +# define av_dlog(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__) +#else +# define av_dlog(pctx, ...) +#endif + /** * Skip repeated messages, this requires the user app to use av_log() instead of * (f)printf as the 2 would otherwise interfere and lead to -- cgit v1.2.3