sys_exit(STRING*)

Ends the application and shuts down the engine at the end of the frame. The given string is printed into the WINEND exit window (if any).

Parameters

STRING* - pointer to a STRING* or char* to be printed in the exit window.

Remarks

Example:

function on_x_event() { sys_exit("123"); } // [x] exits the application with exit code 123

See also:

on_exit, WINDOW

► latest version online