mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-22 09:13:06 +00:00
1112ff1721
The C standard treats an empty variable argument list as a single, empty argument, so PP_NARGS() currently expands to 1. But this is surprising, especially for PP_OVERLOAD(). Use the , ##__VA_ARGS__ GNU C extension to make PP_NARGS() expand to 0 instead. (We could also use __VA_OPT__(,) to achieve the same thing. It has the advantage of being standardized for C23, but the huge disadvantage that it's only available on relatively recent versions of GCC and Clang.) Also check that the extension is supported in configure. Signed-off-by: Omar Sandoval <osandov@osandov.com> |
||
---|---|---|
.. | ||
.gitignore | ||
ax_append_compile_flags.m4 | ||
ax_append_flag.m4 | ||
ax_check_compile_flag.m4 | ||
ax_require_defined.m4 | ||
my_c_auto.m4 | ||
my_check_va_args_comma_deletion.m4 |