Add static, runtime and debug assert utilities
This commit is contained in:
@@ -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