sq_arrayresize |
SQRESULT sq_arrayresize(
HSQUIRRELVM v, SQInteger idx, SQInteger newsize)
;
resizes the array at the position idx in the stack.
- parameters:
-
- HSQUIRRELVM v
-
the target VM
- SQInteger idx
-
index of the target array in the stack
- SQInteger newsize
-
requested size of the array
- return:
-
a SQRESULT
- remarks:
-
Only works on arrays.if newsize if greater than the current size the new array slots will be filled with nulls.