[vlc-devel] commit: vlc_thread_fatal is not needed on production builds ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Apr 11 20:04:57 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Apr 11 21:00:38 2009 +0300| [4062a4ae661272815f6083d62fd2c57122cccdb4] | committer: Rémi Denis-Courmont 

vlc_thread_fatal is not needed on production builds

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

 src/misc/threads.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/threads.c b/src/misc/threads.c
index 75aed70..71bb3b4 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -94,6 +94,7 @@ static inline unsigned long vlc_threadid (void)
 #endif
 }
 
+#ifndef NDEBUG
 /*****************************************************************************
  * vlc_thread_fatal: Report an error from the threading layer
  *****************************************************************************
@@ -136,7 +137,6 @@ vlc_thread_fatal (const char *action, int error,
     abort ();
 }
 
-#ifndef NDEBUG
 # define VLC_THREAD_ASSERT( action ) \
     if (val) vlc_thread_fatal (action, val, __func__, __FILE__, __LINE__)
 #else




More information about the vlc-devel mailing list