Use asserts in array

This commit is contained in:
2025-05-05 20:06:58 +01:00
parent cac66b9dbb
commit 6c8434a530
13 changed files with 264 additions and 734 deletions

View File

@@ -1,6 +1,4 @@
if (!array || array->count >= array->capacity) {{
return;
}}
assert(array != NULL && array->count < array->capacity);
u64 index = (array->count)++;
wapp_{Tlower}_array_set(array, index, item);