update append

This commit is contained in:
2025-12-10 07:52:29 +01:00
parent 1492d885dd
commit 2c4646a0ee
+2 -2
View File
@@ -153,9 +153,9 @@ void dyn_array_shrink_func(void *this, size_t n_items_to_remove, const char *fil
size_t arr_len(void *this);
size_t arr_cap(void *this);
#define arr_append(THIS, VAL) do { \
#define arr_append(THIS, ...) do { \
THIS = arr_grow(THIS, 1); \
THIS[arr_len(THIS)-1] = VAL; \
THIS[arr_len(THIS)-1] = __VA_ARGS__; \
} while(0)