Add ID support for GAIA

This commit is contained in:
Patrick Pelissier committed 2023-03-17 21:47:04 +01:00
1 parent 6223c93b53
commit 144ae9c5ed
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -3577,6 +3577,8 @@ static inline size_t m_core_cstr_hash(const char str[])
#define M_REORDER_ARGLIST_FUNC_ARGPTR8(arglist) , & M_RET_ARG9 arglist ,
#define M_REORDER_ARGLIST_FUNC_ARGPTR9(arglist) , & M_RET_ARG10 arglist ,
#define M_REORDER_ARGLIST_FUNC_ID(arg) , arg , M_EAT
/* Perform the API translation of the return code depending
on the given keyword (NONE, EQ, NEQ, ...).) */
#define M_REORDER_RET_NONE(...) /* Nothing */
+1 -1
View File
@@ -875,7 +875,7 @@ static void test_generic_api(void)
assert( M_HEAD_2(18, 17, 0) == 17);
assert( M_TAIL_2(18, 17, 8) == 8);
#define GO1 (INIT(API( init3, ARG1, ARGPTR2, 17, 43 )))
#define GO1 (INIT(API( init3, ARG1, ARGPTR2, 17, ID(-43) )))
#define GO2 (INIT(API( init3, NONE, ARGPTR2, 0, ARG1 )))
#define GO3 (EQUAL(API( cmp2, EQ(0), ARGPTR1, ARGPTR2 )))
#define GO4 (EQUAL(API( cmp1, EQ(0), ARG1, ARG2 )))