sq_settypetag

Squirrel 3.0

sq_settypetag

SQRESULT sq_settypetag(HSQUIRRELVM v, SQInteger idx, SQUserPointer typetag);

sets the typetag of the object(userdata or class) at position idx in the stack.

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

an index in the stack

SQUserPointer typetag

an arbitrary SQUserPointer

return:

a SQRESULT