Add static, runtime and debug assert utilities
This commit is contained in:
1 parent
75be2316e0
commit
b8c548ee4b
29 files changed
+100
-56
No files matched your search
@@ -1,4 +1,5 @@
|
||||
assert(array != NULL && array->count < array->capacity);
|
||||
wapp_debug_assert(array != NULL, "`array` should not be NULL");
|
||||
wapp_runtime_assert(array->count < array->capacity, "`array` is full");
|
||||
|
||||
u64 index = (array->count)++;
|
||||
wapp_{Tlower}_array_set(array, index, item);
|
||||
Reference in new issue
Block a user