diff options
Diffstat (limited to 'ac3dec/debug.h')
-rw-r--r-- | ac3dec/debug.h | 10 |
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 |