Home
last modified time | relevance | path

Searched refs:PW_DROP_LAST_ARG (Results 1 – 2 of 2) sorted by relevance

/external/pigweed/pw_preprocessor/public/pw_preprocessor/
Darguments.h120 PW_MACRO_ARG_COUNT(PW_DROP_LAST_ARG(__VA_ARGS__))
127 #define PW_DROP_LAST_ARG(...) \ macro
133 PW_EMPTY_ARGS(PW_LAST_ARG(__VA_ARGS__)), PW_DROP_LAST_ARG, _PW_EXPAND) \
/external/pigweed/pw_preprocessor/
Darguments_test.cc233 static_assert(FunctionArgCount(PW_DROP_LAST_ARG(1)) == 0); in TEST()
234 static_assert(FunctionArgCount(PW_DROP_LAST_ARG(1, 2)) == 1); in TEST()
235 static_assert(FunctionArgCount(PW_DROP_LAST_ARG(1, 2, 3)) == 2); in TEST()
239 static_assert(FunctionArgCount(PW_DROP_LAST_ARG()) == 0); in TEST()
240 static_assert(FunctionArgCount(PW_DROP_LAST_ARG(1, )) == 1); in TEST()
241 static_assert(FunctionArgCount(PW_DROP_LAST_ARG(1, 2, )) == 2); in TEST()
242 static_assert(FunctionArgCount(PW_DROP_LAST_ARG(1, 2, 3, )) == 3); in TEST()