Skip to content

Commit 3a1fbf2

Browse files
tammojanwjakob
authored andcommitted
Add ,0 in define
C++11 complains about the missing comma. Adding it makes this code ISO compliant.
1 parent 24f356b commit 3a1fbf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pybind11_mkdoc/mkdoc_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def write_header(comments, out_file=sys.stdout):
391391
392392
#define __EXPAND(x) x
393393
#define __COUNT(_1, _2, _3, _4, _5, _6, _7, COUNT, ...) COUNT
394-
#define __VA_SIZE(...) __EXPAND(__COUNT(__VA_ARGS__, 7, 6, 5, 4, 3, 2, 1))
394+
#define __VA_SIZE(...) __EXPAND(__COUNT(__VA_ARGS__, 7, 6, 5, 4, 3, 2, 1, 0))
395395
#define __CAT1(a, b) a ## b
396396
#define __CAT2(a, b) __CAT1(a, b)
397397
#define __DOC1(n1) __doc_##n1

0 commit comments

Comments
 (0)