Add static, runtime and debug assert utilities

This commit is contained in:
abdelrahman committed 2025-08-09 22:37:55 +01:00
1 parent 75be2316e0
commit b8c548ee4b
29 files changed
+100 -56

No files matched your search

+1 -1
View File
@@ -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);