[vlc-devel] commit: Don't use assert() here. ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu May 1 22:03:37 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Thu May 1 22:27:06 2008 +0300| [a660c4fbe421313ff0641bb18b89008dc42afc7b]
Don't use assert() here.
If it's really wanted, functions should de inlined
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a660c4fbe421313ff0641bb18b89008dc42afc7b
---
include/vlc_common.h | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index e7097f2..1341493 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -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 )
More information about the vlc-devel
mailing list