sq_setprintfunc |
void sq_setprintfunc(
HSQUIRRELVM v, SQPRINTFUNCTION printfunc)
;
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.
- remarks:
-
the print func has the following prototype: void printfunc(HSQUIRRELVM v,const SQChar *s,...)