[vlc-devel] commit: Do not depend on NDEBUG inside headers ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon May 26 18:57:24 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Mon May 26 19:41:28 2008 +0300| [9aba4faded6a1c29a02797726f634445cf115046]

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9aba4faded6a1c29a02797726f634445cf115046
---

 include/vlc_messages.h |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/include/vlc_messages.h b/include/vlc_messages.h
index e9b7678..8260bee 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) );




More information about the vlc-devel mailing list