mirror of
https://github.com/nicbarker/clay.git
synced 2025-01-23 18:06:04 +00:00
6 lines
225 B
C
6 lines
225 B
C
void $NAME$_Set($NAME$ *array, int index, $TYPE$ value) {
|
|
if (Clay__Array_RangeCheck(index, array->capacity)) {
|
|
array->internalArray[index] = value;
|
|
array->length = index < array->length ? array->length : index + 1;
|
|
}
|
|
} |