sq_notifyallexceptions

Squirrel 3.0

sq_notifyallexceptions

void sq_notifyallexceptions(HSQUIRRELVM v, SQBool enable);

enable/disable the error callback notification of handled exceptions.

parameters:
HSQUIRRELVM v

the target VM

SQBool enable

if true enables the error callback notification of handled exceptions.

remarks:

By default the VM will invoke the error callback only if an exception is not handled (no try/catch traps are present in the call stack). If notifyallexceptions is enabled, the VM will call the error callback for any exception even if between try/catch blocks. This feature is useful for implementing debuggers.