Browse Source

Fix warning -Wgnu-zero-variadic-macro-arguments (#181)

Lectem 7 years ago
parent
commit
222456cdec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/bx/macros.h

+ 1 - 1
include/bx/macros.h

@@ -19,7 +19,7 @@
 #	define BX_VA_ARGS_PASS(...) (__VA_ARGS__)
 #endif // BX_COMPILER_MSVC
 
-#define BX_VA_ARGS_COUNT(...) BX_VA_ARGS_COUNT_ BX_VA_ARGS_PASS(__VA_ARGS__, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1)
+#define BX_VA_ARGS_COUNT(...) BX_VA_ARGS_COUNT_ BX_VA_ARGS_PASS(__VA_ARGS__, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0)
 #define BX_VA_ARGS_COUNT_(_a1, _a2, _a3, _a4, _a5, _a6, _a7, _a8, _a9, _a10, _a11, _a12, _a13, _a14, _a15, _a16, _last, ...) _last
 
 ///