Always reserve padding for structs that need it

This commit is contained in:
2026-01-03 17:04:36 +00:00
parent b372447a46
commit 83b879a180
6 changed files with 9 additions and 15 deletions

View File

@@ -86,8 +86,8 @@ typedef Str8 *Str8Array;
#else
#define _stack_array(TYPE, SIZE) struct {ArrayHeader header; \
TYPE items[SIZE]; \
wapp_misc_utils_padding_size(sizeof(ArrayHeader) + \
sizeof(TYPE) * SIZE);}
wapp_misc_utils_reserve_padding(sizeof(ArrayHeader) + \
sizeof(TYPE) * SIZE);}
#define wapp_array(TYPE, ...) \
(TYPE *)( \
(_stack_array(TYPE, _calc_array_capacity(TYPE, __VA_ARGS__))){ \