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,7 +1,7 @@
|
||||
assert(array != NULL && other != NULL);
|
||||
wapp_debug_assert(array != NULL && other != NULL, "`array` and `other` should not be NULL");
|
||||
|
||||
u64 remaining_capacity = array->capacity - array->count;
|
||||
assert(other->count < remaining_capacity);
|
||||
wapp_runtime_assert(other->count < remaining_capacity, "`array` does not have enough capacity");
|
||||
|
||||
{T} *item;
|
||||
|
||||
|
||||
Reference in new issue
Block a user