AUI_PP_NARG#
Evaluates to the number of arguments after expansion.
| Header: | #include <AUI/Util/APreprocessor.h> |
| CMake: | aui_link(my_target PUBLIC aui::core) |
Definition#
#define AUI_PP_NARG(...) \
AUI_PP_INTERNAL_16TH( \
(__VA_ARGS__, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0))
Detailed Description#
#define PAIR x, y
AUI_PP_NARG() => 1
AUI_PP_NARG(x) => 1
AUI_PP_NARG(x, y) => 2
AUI_PP_NARG(PAIR) => 2
Requires: the number of arguments after expansion is at most 15.