change how contains works

TODO: update tests
This commit is contained in:
2025-12-14 15:31:51 +01:00
parent 1e78fa7d2f
commit 526b49e518
+2 -2
View File
@@ -192,8 +192,8 @@ bool dyn_array_contains_func(void *this, uint8_t *value);
#define arr_contains(THIS, ...)\
(\
STATIC_ASSERT(sizeof(*(THIS)) == sizeof(*(__VA_ARGS__))),\
dyn_array_contains_func((THIS), (uint8_t*)(__VA_ARGS__))\
STATIC_ASSERT(sizeof(*(THIS)) == sizeof(*(&__VA_ARGS__))),\
dyn_array_contains_func((THIS), (uint8_t*)(&__VA_ARGS__))\
)
// Comparison function: returns true if a equals b, false otherwise