fix tests and contains cmp version

This commit is contained in:
2025-12-14 15:48:16 +01:00
parent 526b49e518
commit 4906ae7001
2 changed files with 23 additions and 23 deletions
+2 -2
View File
@@ -203,8 +203,8 @@ bool dyn_array_contains_eq_func(void *this, uint8_t *value, dyn_array_eq_fn eq);
#define arr_contains_cmp(THIS, EQ_FN, ...)\
(\
STATIC_ASSERT(sizeof(*(THIS)) == sizeof(*(__VA_ARGS__))),\
dyn_array_contains_eq_func((THIS), (uint8_t*)(__VA_ARGS__), (EQ_FN))\
STATIC_ASSERT(sizeof(*(THIS)) == sizeof(*(&__VA_ARGS__))),\
dyn_array_contains_eq_func((THIS), (uint8_t*)(&__VA_ARGS__), (EQ_FN))\
)
// Comparison function for sorting: returns -1 if a < b, 0 if a == b, 1 if a > b