Message ID | 20170421104722.21538-1-johannes@sipsolutions.net (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/backport/backport-include/backport/magic.h b/backport/backport-include/backport/magic.h index 222e02513ef2..d7e7cc961bbf 100644 --- a/backport/backport-include/backport/magic.h +++ b/backport/backport-include/backport/magic.h @@ -5,8 +5,8 @@ * http://efesx.com/2010/08/31/overloading-macros/ */ -#define VA_NUM_ARGS(...) VA_NUM_ARGS_IMPL(__VA_ARGS__, 5,4,3,2,1) -#define VA_NUM_ARGS_IMPL(_1,_2,_3,_4,_5,N,...) N +#define VA_NUM_ARGS(...) VA_NUM_ARGS_IMPL(__VA_ARGS__, 6,5,4,3,2,1) +#define VA_NUM_ARGS_IMPL(_1,_2,_3,_4,_5,_6,N,...) N #define macro_dispatcher(func, ...) \ macro_dispatcher_(func, VA_NUM_ARGS(__VA_ARGS__))