sq_setprintfunc

Squirrel 3.0

sq_setprintfunc

void sq_setprintfunc(HSQUIRRELVM v, SQPRINTFUNCTION printfunc, SQPRINTFUNCTION errorfunc);

sets the print function of the virtual machine. This function is used by the built-in function '::print()' to output text.

parameters:
HSQUIRRELVM v

the target VM

SQPRINTFUNCTION printfunc

a pointer to the print func or NULL to disable the output.

SQPRINTFUNCTION errorfunc

a pointer to the error func or NULL to disable the output.

remarks:

the print func has the following prototype: void printfunc(HSQUIRRELVM v,const SQChar *s,...)