Changeset d8cfcc7785b36b3dd93f01a2693ffc7bd9da8669

Show
Ignore:
Timestamp:
01/21/08 17:06:00 (8 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1200931560 +0000
git-parent:

[55623f505bc8609e4aa94043f30c33a512ef5c57]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1200931560 +0000
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_threads_funcs.h

    r2c5dbee rd8cfcc7  
    3636 * Function definitions 
    3737 *****************************************************************************/ 
    38 VLC_EXPORT( void, __vlc_threads_error, ( vlc_object_t *) ); 
     38VLC_EXPORT( void, vlc_threads_error, ( vlc_object_t *) ); 
    3939VLC_EXPORT( int,  __vlc_mutex_init,    ( vlc_object_t *, vlc_mutex_t * ) ); 
    4040VLC_EXPORT( int,  __vlc_mutex_init_recursive, ( vlc_object_t *, vlc_mutex_t * ) ); 
     
    5151 * vlc_threads_error: Signalize an error in the threading system 
    5252 *****************************************************************************/ 
    53 #define vlc_threads_error( P_THIS )                                          \ 
    54     __vlc_threads_error( VLC_OBJECT(P_THIS) ) 
     53#ifdef NDEBUG 
     54# define vlc_threads_error( P_THIS ) (void)0 
     55#endif 
    5556 
    5657/***************************************************************************** 
  • src/misc/threads.c

    r192a207 rd8cfcc7  
    8484 * on which you can break. 
    8585 *****************************************************************************/ 
    86 void 
    87 __vlc_threads_error( vlc_object_t *p_this ) 
     86void vlc_threads_error( vlc_object_t *p_this ) 
    8887{ 
    8988     msg_Err( p_this, "Error detected. Put a breakpoint in '%s' to debug.",