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

Use NDEBUG

parent 484c9311
......@@ -332,7 +332,7 @@ connect:
if( p_access->b_die || Connect( p_access, 0 ) )
goto error;
#ifdef DEBUG
#ifndef NDEBUG
case 0:
break;
......
......@@ -94,7 +94,7 @@ static int Open ( vlc_object_t *p_this )
/* Win32 SDL implementation doesn't support SDL_INIT_EVENTTHREAD yet */
i_flags |= SDL_INIT_EVENTTHREAD;
#endif
#ifdef DEBUG
#ifndef NDEBUG
/* In debug mode you may want vlc to dump a core instead of staying
* stuck */
i_flags |= SDL_INIT_NOPARACHUTE;
......
......@@ -1384,7 +1384,7 @@
[o_outline_dict setObject:o_value forKey:[NSString stringWithFormat:@"%p",
[o_value pointerValue]]];
#ifdef DEBUG
#ifndef NDEBUG
msg_Dbg( VLCIntf, "adding item %p", [o_value pointerValue] );
#endif
return o_value;
......
......@@ -273,7 +273,7 @@ int E_( EStoPES )( sout_instance_t *p_sout, block_t **pp_pes, block_t *p_es,
*pp_pes = p_pes = NULL;
#ifdef DEBUG
#ifndef NDEBUG
memset( header, 0, 50 );
#endif
......
......@@ -198,7 +198,7 @@ static int Open ( vlc_object_t *p_this )
/* Win32 SDL implementation doesn't support SDL_INIT_EVENTTHREAD yet*/
| SDL_INIT_EVENTTHREAD
#endif
#ifdef DEBUG
#ifndef NDEBUG
/* In debug mode you may want vlc to dump a core instead of staying
* stuck */
| SDL_INIT_NOPARACHUTE
......
......@@ -217,7 +217,7 @@ void vout_DestroyPicture( vout_thread_t *p_vout, picture_t *p_pic )
{
vlc_mutex_lock( &p_vout->picture_lock );
#ifdef DEBUG
#ifndef NDEBUG
/* Check if picture status is valid */
if( (p_pic->i_status != RESERVED_PICTURE) &&
(p_pic->i_status != RESERVED_DATED_PICTURE) &&
......
......@@ -92,7 +92,7 @@ int main( int i_argc, const char *ppsz_argv[] )
#endif
#ifdef HAVE_PUTENV
# ifdef DEBUG
# ifndef NDEBUG
/* Activate malloc checking routines to detect heap corruptions. */
putenv( (char*)"MALLOC_CHECK_=2" );
# ifdef __APPLE__
......
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