summaryrefslogtreecommitdiff
path: root/ac3dec/debug.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-08-09 11:41:39 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-08-09 11:41:39 +0200
commitc50dc5e888627bd1644f46585a44dc118c865127 (patch)
tree1dc5a28da106e3404863fc0234891142a5c29b2f /ac3dec/debug.h
parent85a027791063dfd7e94ccef45ea9e755df63d29a (diff)
downloadvdr-c50dc5e888627bd1644f46585a44dc118c865127.tar.gz
vdr-c50dc5e888627bd1644f46585a44dc118c865127.tar.bz2
Improvements from Matjaz Thaler
Diffstat (limited to 'ac3dec/debug.h')
-rw-r--r--ac3dec/debug.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/ac3dec/debug.h b/ac3dec/debug.h
index f45cb5b1..691d4032 100644
--- a/ac3dec/debug.h
+++ b/ac3dec/debug.h
@@ -22,16 +22,20 @@
*
*/
-int debug_is_on(void);
+int debug_is_on (void);
#ifdef __GNUC__
-#define dprintf(format,args...)\
+#ifdef DEBUG
+#define dprintf(args...)\
{\
if (debug_is_on())\
{\
- fprintf(stderr,format,## args);\
+ fprintf(stderr, args);\
}\
}
#else
+#define dprintf(args...) { };
+#endif
+#else
void dprintf(char fmt[],...);
#endif