sq_typeof

Squirrel 3.0

sq_typeof

SQObjectType sq_typeof(HSQUIRRELVM v, SQInteger idx);

pushes the type name of the value at the position idx in the stack, it also invokes the _typeof metamethod for tables and class instances that implement it; in that case the pushed object could be something other than a string (is up to the _typeof implementation).

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

an index in the stack

return:

a SQRESULT