sq_throwobject

Squirrel 3.0

sq_throwobject

SQRESULT sq_throwobject(HSQUIRRELVM v);

pops a value from the stack sets it as the last error in the virtual machine. Returns the value that has to be returned by a native closure in order to trigger an exception in the virtual machine (aka SQ_ERROR).

parameters:
HSQUIRRELVM v

the target VM

return:

the value that has to be returned by a native closure in order to throw an exception in the virtual machine.