sq_throwerror |
SQRESULT sq_throwerror(
HSQUIRRELVM v, const SQChar * err)
;
sets the last error in the virtual machine and returns the value that has to be returned by a native closure in order to trigger an exception in the virtual machine.
- parameters:
-
- HSQUIRRELVM v
-
the target VM
- const SQChar * err
-
the description of the error that has to be thrown
- return:
-
the value that has to be returned by a native closure in order to throw an exception in the virtual machine.