sq_gettype

Squirrel 2.2

sq_gettype

SQObjectType sq_gettype(HSQUIRRELVM v, SQInteger idx);

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