diff options
-rw-r--r-- | dynarr.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -33,9 +33,9 @@ typedef struct { size_t count, capacity; } DynArrHeader; (da) = (void *)(da_fit_ptr + sizeof(DynArrHeader));\ } -#define DA_PUSH(da, item) {\ +#define DA_PUSH(da, ...) {\ DA_FIT(da, DA_LEN(da) + 1);\ - (da)[DA_HEADER(da)->count++] = item;\ + (da)[DA_HEADER(da)->count++] = (__VA_ARGS__);\ } #define DA_PUSH_MULT(da, buf, n) {\ |