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

@@ -23,9 +23,7 @@ struct Arena {
u64 capacity;
b8 committed;
#ifdef WAPP_PLATFORM_WINDOWS
wapp_misc_utils_padding_size(sizeof(u8 *) * 2 + sizeof(u64) + sizeof(b8));
#endif // ifdef WAPP_PLATFORM_WINDOWS
wapp_misc_utils_reserve_padding(sizeof(u8 *) * 2 + sizeof(u64) + sizeof(b8));
};
b8 wapp_mem_arena_init_custom(Arena **arena, u64 base_capacity, MemAllocFlags flags, b8 zero_buffer) {