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,8 +1,6 @@
|
||||
{ArrayType} *output = dst;
|
||||
assert(allocator != NULL & src != NULL && dst != NULL);
|
||||
|
||||
if (!allocator || !src || !dst) {{
|
||||
goto RETURN_{Tupper}_ARRAY_COPY_ALLOC;
|
||||
}}
|
||||
{ArrayType} *output = dst;
|
||||
|
||||
if (src->count >= dst->capacity) {{
|
||||
u64 new_capacity = wapp_misc_utils_u64_round_up_pow2(dst->capacity * 2);
|
||||
|
||||
Reference in new issue
Block a user