Use asserts in array
This commit is contained in:
1 parent
cac66b9dbb
commit
6c8434a530
13 files changed
+264
-734
No files matched your search
@@ -1,11 +1,7 @@
|
||||
if (!array || !other) {{
|
||||
return;
|
||||
}}
|
||||
assert(array != NULL && other != NULL);
|
||||
|
||||
u64 remaining_capacity = array->capacity - array->count;
|
||||
if (other->count >= remaining_capacity) {{
|
||||
return;
|
||||
}}
|
||||
assert(other->count < remaining_capacity);
|
||||
|
||||
{T} *item;
|
||||
|
||||
|
||||
Reference in new issue
Block a user