sq_gettype

Squirrel 3.0

sq_gettype

SQObjectType sq_gettype(HSQUIRRELVM v, SQInteger idx);

returns the type of the value at the position idx in the stack

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

an index in the stack

return:

the type of the value at the position idx in the stack