forked from mirrors/linphone-iphone
Fix variadic args macro for Visual Studio.
This commit is contained in:
parent
02ce26850a
commit
952e5a908c
1 changed files with 2 additions and 2 deletions
|
|
@ -55,13 +55,13 @@ static void cleanup_dead_vtable_refs(LinphoneCore *lc){
|
|||
}
|
||||
}
|
||||
|
||||
#define NOTIFY_IF_EXIST(function_name, args...) \
|
||||
#define NOTIFY_IF_EXIST(function_name, ...) \
|
||||
MSList* iterator; \
|
||||
VTableReference *ref; \
|
||||
bool_t has_cb = FALSE; \
|
||||
for (iterator=lc->vtable_refs; iterator!=NULL; iterator=iterator->next)\
|
||||
if ((ref=(VTableReference*)iterator->data)->valid && (lc->current_vtable=ref->vtable)->function_name) {\
|
||||
lc->current_vtable->function_name(args);\
|
||||
lc->current_vtable->function_name(__VA_ARGS__);\
|
||||
has_cb = TRUE;\
|
||||
}\
|
||||
if (has_cb) ms_message("Linphone core [%p] notifying [%s]",lc,#function_name)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue