6 lines
220 B
Plaintext
6 lines
220 B
Plaintext
wapp_debug_assert(array != NULL, "`array` should not be NULL");
|
|
wapp_runtime_assert(array->count < array->capacity, "`array` is full");
|
|
|
|
u64 index = (array->count)++;
|
|
wapp_{Tlower}_array_set(array, index, item);
|