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

Don't clutter the production builds with the (useless IMHO) vlc_thread_error

parent 55623f50
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
/***************************************************************************** /*****************************************************************************
* Function definitions * Function definitions
*****************************************************************************/ *****************************************************************************/
VLC_EXPORT( void, __vlc_threads_error, ( vlc_object_t *) ); VLC_EXPORT( void, vlc_threads_error, ( vlc_object_t *) );
VLC_EXPORT( int, __vlc_mutex_init, ( vlc_object_t *, vlc_mutex_t * ) ); VLC_EXPORT( int, __vlc_mutex_init, ( vlc_object_t *, vlc_mutex_t * ) );
VLC_EXPORT( int, __vlc_mutex_init_recursive, ( vlc_object_t *, vlc_mutex_t * ) ); VLC_EXPORT( int, __vlc_mutex_init_recursive, ( vlc_object_t *, vlc_mutex_t * ) );
VLC_EXPORT( int, __vlc_mutex_destroy, ( const char *, int, vlc_mutex_t * ) ); VLC_EXPORT( int, __vlc_mutex_destroy, ( const char *, int, vlc_mutex_t * ) );
...@@ -50,8 +50,9 @@ VLC_EXPORT( void, __vlc_thread_join, ( vlc_object_t *, const char *, int ) ); ...@@ -50,8 +50,9 @@ VLC_EXPORT( void, __vlc_thread_join, ( vlc_object_t *, const char *, int ) );
/***************************************************************************** /*****************************************************************************
* vlc_threads_error: Signalize an error in the threading system * vlc_threads_error: Signalize an error in the threading system
*****************************************************************************/ *****************************************************************************/
#define vlc_threads_error( P_THIS ) \ #ifdef NDEBUG
__vlc_threads_error( VLC_OBJECT(P_THIS) ) # define vlc_threads_error( P_THIS ) (void)0
#endif
/***************************************************************************** /*****************************************************************************
* vlc_threads_init: initialize threads system * vlc_threads_init: initialize threads system
......
...@@ -83,8 +83,7 @@ vlc_threadvar_t msg_context_global_key; ...@@ -83,8 +83,7 @@ vlc_threadvar_t msg_context_global_key;
* This is especially useful to debug those errors, as this is a nice symbol * This is especially useful to debug those errors, as this is a nice symbol
* on which you can break. * on which you can break.
*****************************************************************************/ *****************************************************************************/
void void vlc_threads_error( vlc_object_t *p_this )
__vlc_threads_error( vlc_object_t *p_this )
{ {
msg_Err( p_this, "Error detected. Put a breakpoint in '%s' to debug.", msg_Err( p_this, "Error detected. Put a breakpoint in '%s' to debug.",
__func__ ); __func__ );
......
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