Use asserts in array
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
{ArrayType} *output = array;
|
||||
assert(allocator != NULL && array != NULL && other != NULL);
|
||||
|
||||
if (!allocator || !array || !other) {{
|
||||
goto RETURN_{Tupper}_ARRAY_EXTEND_ALLOC;
|
||||
}}
|
||||
{ArrayType} *output = array;
|
||||
|
||||
u64 remaining_capacity = array->capacity - array->count;
|
||||
if (other->count >= remaining_capacity) {{
|
||||
|
Reference in New Issue
Block a user