Arrays without code generation #6

Merged
abdelrahman merged 15 commits from no-codegen-array into main 2025-12-14 01:47:43 +00:00
Showing only changes of commit c17b343f13 - Show all commits

View File

@@ -217,7 +217,7 @@ u8 *_array_alloc_capacity(const Allocator *allocator, u64 capacity, u64 item_siz
goto RETURN_ARRAY_ALLOC;
}
output = ((u8 *)header) + sizeof(ArrayHeader);
output = (u8 *)(header + 1);
header->magic = WAPP_ARRAY_MAGIC;
header->count = 0;
header->capacity = capacity;