mirror of
https://github.com/nicbarker/clay.git
synced 2025-01-23 18:06:04 +00:00
7 lines
252 B
C
7 lines
252 B
C
|
$TYPE$ *$NAME$_Add($NAME$ *array, $TYPE$ item) {
|
||
|
if (Clay__Array_IncrementCapacityCheck(array->length, array->capacity)) {
|
||
|
array->internalArray[array->length++] = item;
|
||
|
return &array->internalArray[array->length - 1];
|
||
|
}
|
||
|
return $DEFAULT_VALUE$;
|
||
|
}
|