From: RĂ©mi Denis-Courmont Date: Mon, 26 May 2008 16:41:28 +0000 (+0300) Subject: Do not depend on NDEBUG inside headers X-Git-Tag: 0.9.0-test0~703 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=9aba4faded6a1c29a02797726f634445cf115046;p=vlc Do not depend on NDEBUG inside headers If stats are too heavy weight to use w/o debug, we should either fix them or remove them completely anyway --- diff --git a/include/vlc_messages.h b/include/vlc_messages.h index e9b7678744..8260bee1b5 100644 --- a/include/vlc_messages.h +++ b/include/vlc_messages.h @@ -306,17 +306,10 @@ VLC_EXPORT( void, __stats_ComputeGlobalStats, (vlc_object_t*,global_stats_t*)); /********* * Timing ********/ -#ifndef NDEBUG #define stats_TimerStart(a,b,c) __stats_TimerStart( VLC_OBJECT(a), b,c ) #define stats_TimerStop(a,b) __stats_TimerStop( VLC_OBJECT(a), b ) #define stats_TimerDump(a,b) __stats_TimerDump( VLC_OBJECT(a), b ) #define stats_TimersDumpAll(a) __stats_TimersDumpAll( VLC_OBJECT(a) ) -#else -#define stats_TimerStart(a,b,c) (void)0 -#define stats_TimerStop(a,b) (void)0 -#define stats_TimerDump(a,b) (void)0 -#define stats_TimersDumpAll(a) (void)0 -#endif VLC_EXPORT( void,__stats_TimerStart, (vlc_object_t*, const char *, unsigned int ) ); VLC_EXPORT( void,__stats_TimerStop, (vlc_object_t*, unsigned int) ); VLC_EXPORT( void,__stats_TimerDump, (vlc_object_t*, unsigned int) );