Home
last modified time | relevance | path

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

/external/pigweed/pw_preprocessor/public/pw_preprocessor/
Darguments.h56 _PW_IF(PW_EMPTY_ARGS(__VA_ARGS__), _PW_EXPAND, _PW_COMMA_ARGS) \
116 _PW_PASTE2(_PW_FUNCTION_ARG_COUNT_, PW_EMPTY_ARGS(last_arg))(__VA_ARGS__)
133 PW_EMPTY_ARGS(PW_LAST_ARG(__VA_ARGS__)), PW_DROP_LAST_ARG, _PW_EXPAND) \
137 #define PW_HAS_ARGS(...) PW_NOT(PW_EMPTY_ARGS(__VA_ARGS__))
162 #define PW_EMPTY_ARGS(...) \ macro
/external/pigweed/pw_preprocessor/
Darguments_test.cc46 static_assert(PW_EMPTY_ARGS() == 1); in TEST()
47 static_assert(PW_EMPTY_ARGS(/* hello */) == 1); in TEST()
48 static_assert(PW_EMPTY_ARGS( in TEST()
61 static_assert(PW_EMPTY_ARGS(0) == 0); in TEST()
62 static_assert(PW_EMPTY_ARGS(, ) == 0); in TEST()
63 static_assert(PW_EMPTY_ARGS(a, b, c) == 0); in TEST()
64 static_assert(PW_EMPTY_ARGS(PW_HAS_ARGS) == 0); in TEST()
65 static_assert(PW_EMPTY_ARGS(PW_HAS_ARGS()) == 0); in TEST()