sq_setinstanceup

Squirrel 3.0

sq_setinstanceup

SQRESULT sq_setinstanceup(HSQUIRRELVM v, SQInteger idx, SQUserPointer up);

sets the userpointer of the class instance at position idx in the stack.

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

an index in the stack

SQUserPointer up

an arbitrary user pointer

return:

a SQRESULT