sq_getstackobj

Squirrel 2.2

sq_getstackobj

SQRESULT sq_getstackobj(HSQUIRRELVM v, SQInteger idx, HSQOBJECT * po);

gets an object from the stack and stores it in a object handler.

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

index of the target object in the stack

HSQOBJECT * po

pointer to an object handler

return:

a SQRESULT