clay/generator/array_get.template.c

3 lines
154 B
C
Raw Normal View History

2024-08-23 04:05:23 +00:00
$TYPE$ *$NAME$_Get($NAME$ *array, int index) {
return Clay__Array_RangeCheck(index, array->length) ? &array->internalArray[index] : $DEFAULT_VALUE$;
}