clay/generator/array_add_value.template.c

5 lines
167 B
C
Raw Normal View History

2024-09-01 23:06:14 +00:00
void $NAME$_Add($NAME$ *array, $TYPE$ item) {
if (Clay__Array_AddCapacityCheck(array->length, array->capacity)) {
2024-09-01 23:06:14 +00:00
array->internalArray[array->length++] = item;
}
}