Change M_BY_NARGS semantics:

simplify suffix by __ # NARGS
instead of __NARGS_ # NARGS

Driver: reduce macro name length.
This commit is contained in:
Patrick Pelissier committed 2023-10-20 00:02:38 +02:00
1 parent 268192138a
commit 796f2619e5
3 files changed
+21 -19

No files matched your search

+2 -2
View File
@@ -570,8 +570,8 @@ static void test_oplist(void)
assert (M_ID (M_GET_NAME A5));
#define A6 (NAME(A6), INIT_WITH(API_1(M_INIT_WITH_NVAR)))
#define A6_init_with__NARGS_1(x) 1
#define A6_init_with__NARGS_2(x, y) 0
#define A6_init_with__1(x) 1
#define A6_init_with__2(x, y) 0
assert (M_ID(M_CALL_INIT_WITH (A6, 0)));
assert (M_ID(!M_CALL_INIT_WITH (A6, 0, 0)));
}