sq_arrayinsert

Squirrel 2.2

sq_arrayinsert

SQRESULT sq_arrayinsert(HSQUIRRELVM v, SQInteger idx, SQInteger destpos);

pops a value from the stack and inserts it in an array at the specified position

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

index of the target array in the stack

SQInteger destpos

the postion in the array where the item has to be inserted

return:

a SQRESULT

remarks:

Only works on arrays.