Exit cleanly from the application.
Calling exit() will properly unwind the stack and all the destructors will be called. Should be used only from the main application thread though.
status code to return to the OS
optional message to show just before exiting
See Implementation
Exit cleanly from the application.
Calling exit() will properly unwind the stack and all the destructors will be called. Should be used only from the main application thread though.