mirror of
https://github.com/nicbarker/clay.git
synced 2025-01-23 09:56:03 +00:00
cf12cd6af8
Some checks failed
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Failing after 1m44s
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Failing after 13s
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
9 lines
297 B
C
9 lines
297 B
C
$TYPE$ $NAME$_RemoveSwapback($NAME$ *array, int32_t index) {
|
|
if (Clay__Array_RangeCheck(index, array->length)) {
|
|
array->length--;
|
|
$TYPE$ removed = array->internalArray[index];
|
|
array->internalArray[index] = array->internalArray[array->length];
|
|
return removed;
|
|
}
|
|
return $DEFAULT_VALUE$;
|
|
} |