Add static, runtime and debug assert utilities
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
assert(allocator != NULL);
|
||||
wapp_debug_assert(allocator != NULL, "`array` should not be NULL");
|
||||
|
||||
u64 allocation_size = sizeof({ArrayType}) + item_size * capacity;
|
||||
{ArrayType} *array = wapp_mem_allocator_alloc(allocator, allocation_size);
|
||||
|
Reference in New Issue
Block a user