Use asserts in array
This commit is contained in:
@@ -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