sq_setcompilererrorhandler

Squirrel 2.2

sq_setcompilererrorhandler

void sq_setcompilererrorhandler(HSQUIRRELVM v, SQCOMPILERERROR f);

sets the compiler error handler function

parameters:
HSQUIRRELVM v

the target VM

SQCOMPILERERROR f

A pointer to the error handler function

remarks:

if the parameter f is NULL no function will be called when a compiler error occurs. The compiler error handler is shared between friend VMs.