Searched refs:PP_NARGS (Results 1 – 2 of 2) sorted by relevance
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | log.h | 151 PP_EXPAND(SPIRV_CONCATENATE(SPIRV_ASSERT_, PP_NARGS(__VA_ARGS__))( \ 155 PP_EXPAND(SPIRV_CONCATENATE(SPIRV_DEBUG_, PP_NARGS(__VA_ARGS__))( \ 223 #define PP_NARGS(...) PP_EXPAND(PP_ARG_N(__VA_ARGS__, 5, 4, 3, 2, 1, 0)) macro 227 static_assert(PP_NARGS(0) == 1, "PP_NARGS macro error"); 228 static_assert(PP_NARGS(0, 0) == 2, "PP_NARGS macro error"); 229 static_assert(PP_NARGS(0, 0, 0) == 3, "PP_NARGS macro error"); 230 static_assert(PP_NARGS(0, 0, 0, 0) == 4, "PP_NARGS macro error"); 231 static_assert(PP_NARGS(0, 0, 0, 0, 0) == 5, "PP_NARGS macro error"); 232 static_assert(PP_NARGS(1 + 1, 2, 3 / 3) == 3, "PP_NARGS macro error"); 233 static_assert(PP_NARGS((1, 1), 2, (3, 3)) == 3, "PP_NARGS macro error");
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | log.h | 151 PP_EXPAND(SPIRV_CONCATENATE(SPIRV_ASSERT_, PP_NARGS(__VA_ARGS__))( \ 155 PP_EXPAND(SPIRV_CONCATENATE(SPIRV_DEBUG_, PP_NARGS(__VA_ARGS__))( \ 223 #define PP_NARGS(...) PP_EXPAND(PP_ARG_N(__VA_ARGS__, 5, 4, 3, 2, 1, 0)) macro 227 static_assert(PP_NARGS(0) == 1, "PP_NARGS macro error"); 228 static_assert(PP_NARGS(0, 0) == 2, "PP_NARGS macro error"); 229 static_assert(PP_NARGS(0, 0, 0) == 3, "PP_NARGS macro error"); 230 static_assert(PP_NARGS(0, 0, 0, 0) == 4, "PP_NARGS macro error"); 231 static_assert(PP_NARGS(0, 0, 0, 0, 0) == 5, "PP_NARGS macro error"); 232 static_assert(PP_NARGS(1 + 1, 2, 3 / 3) == 3, "PP_NARGS macro error"); 233 static_assert(PP_NARGS((1, 1), 2, (3, 3)) == 3, "PP_NARGS macro error");
|