Commit 9aba4fad authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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
parent c0a898e1
......@@ -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) );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment