Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
a660c4fb
Commit
a660c4fb
authored
May 01, 2008
by
Rémi Denis-Courmont
Browse files
Don't use assert() here.
If it's really wanted, functions should de inlined
parent
44460e6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/vlc_common.h
View file @
a660c4fb
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment