clay/generator/array_get_value.template.c

3 lines
152 B
C
Raw Normal View History

2024-09-01 23:06:14 +00:00
$TYPE$ $NAME$_Get($NAME$ *array, int index) {
return Clay__Array_RangeCheck(index, array->length) ? array->internalArray[index] : $DEFAULT_VALUE$;
}