sq_seterrorhandler

Squirrel 2.2

sq_seterrorhandler

void sq_seterrorhandler(HSQUIRRELVM v);

pops from the stack a closure or native closure an sets it as runtime-error handler.

parameters:
HSQUIRRELVM v

the target VM

remarks:

the error handler is shared by friend VMs