sq_clone

Squirrel 3.0

sq_clone

SQRESULT sq_clone(HSQUIRRELVM v, SQInteger idx);

Clones the table, array or class instance at the position idx, clones it and pushes the new object in the stack.

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

index of the target object in the stack

return:

a SQRESULT