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

Don't use assert() here.

If it's really wanted, functions should de inlined
parent 44460e6d
......@@ -552,12 +552,8 @@ struct gc_object_t
VLC_GC_MEMBERS
};
#include <assert.h> /* FIXME: should not be included here */
static inline void __vlc_gc_incref( gc_object_t * p_gc )
{
assert( p_gc->i_gc_refcount > 0 );
p_gc->i_gc_refcount ++;
};
......@@ -565,8 +561,6 @@ static inline void __vlc_gc_decref( gc_object_t *p_gc )
{
if( !p_gc ) return;
assert( p_gc->i_gc_refcount > 0 );
p_gc->i_gc_refcount -- ;
if( p_gc->i_gc_refcount == 0 )
......
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