clay/generator/array_add_value.template.c
2024-09-02 11:06:14 +12:00

5 lines
173 B
C

void $NAME$_Add($NAME$ *array, $TYPE$ item) {
if (Clay__Array_IncrementCapacityCheck(array->length, array->capacity)) {
array->internalArray[array->length++] = item;
}
}