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