7. The Aux library
The aux library implements default handlers for compiler and runtime errors and a stack dumping.
7.1. C API
-
void sqstd_seterrorhandlers(HSQUIRRELVM v)
- Parameters:
v (HSQUIRRELVM) – the target VM
initialize compiler and runtime error handlers, the handlers use the print function set through(sq_setprintfunc) to output the error.
-
void sqstd_printcallstack(HSQUIRRELVM v)
- Parameters:
v (HSQUIRRELVM) – the target VM
prints the call stack and stack contents. the function uses the print function set through(sq_setprintfunc) to output the stack dump.