Commit 35a84e28 authored by Rémi Duraffort's avatar Rémi Duraffort

vlc_object_dump is used only when debuging.

parent 91bf0f04
...@@ -83,7 +83,9 @@ static void ListChildren ( vlc_list_t *, vlc_object_t *, int ); ...@@ -83,7 +83,9 @@ static void ListChildren ( vlc_list_t *, vlc_object_t *, int );
static void vlc_object_destroy( vlc_object_t *p_this ); static void vlc_object_destroy( vlc_object_t *p_this );
static void vlc_object_detach_unlocked (vlc_object_t *p_this); static void vlc_object_detach_unlocked (vlc_object_t *p_this);
#ifndef NDEBUG
static void vlc_object_dump( vlc_object_t *p_this ); static void vlc_object_dump( vlc_object_t *p_this );
#endif
/***************************************************************************** /*****************************************************************************
* Local structure lock * Local structure lock
...@@ -1024,6 +1026,7 @@ void vlc_list_release( vlc_list_t *p_list ) ...@@ -1024,6 +1026,7 @@ void vlc_list_release( vlc_list_t *p_list )
/***************************************************************************** /*****************************************************************************
* dump an object. (Debug function) * dump an object. (Debug function)
*****************************************************************************/ *****************************************************************************/
#ifndef NDEBUG
static void vlc_object_dump( vlc_object_t *p_this ) static void vlc_object_dump( vlc_object_t *p_this )
{ {
char psz_foo[2 * MAX_DUMPSTRUCTURE_DEPTH + 1]; char psz_foo[2 * MAX_DUMPSTRUCTURE_DEPTH + 1];
...@@ -1031,6 +1034,7 @@ static void vlc_object_dump( vlc_object_t *p_this ) ...@@ -1031,6 +1034,7 @@ static void vlc_object_dump( vlc_object_t *p_this )
DumpStructure( p_this, 0, psz_foo ); DumpStructure( p_this, 0, psz_foo );
} }
#endif
/* Following functions are local */ /* Following functions are local */
......
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