sq_arrayappend

Squirrel 3.0

sq_arrayappend

SQRESULT sq_arrayappend(HSQUIRRELVM v, SQInteger idx);

pops a value from the stack and pushes it in the back of 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

return:

a SQRESULT

remarks:

Only works on arrays.