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

3 lines
152 B
C

$TYPE$ $NAME$_Get($NAME$ *array, int index) {
return Clay__Array_RangeCheck(index, array->length) ? array->internalArray[index] : $DEFAULT_VALUE$;
}