diff mbox

[1/2] backports: extend magic to 6 possible arguments

Message ID 20170421104722.21538-1-johannes@sipsolutions.net (mailing list archive)
State Accepted
Headers show

Commit Message

Johannes Berg April 21, 2017, 10:47 a.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 backport/backport-include/backport/magic.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

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__))