sq_clear

Squirrel 2.2

sq_clear

SQRESULT sq_clear(HSQUIRRELVM v, SQInteger idx);

clears all the element of the table/array at position idx in the stack.

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

index of the target object in the stack

return:

a SQRESULT

remarks:

Only works on tables and arrays.