mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-18 09:30:13 +08:00
Unfortunately returning false from the (overridden) wxApp::OnInit() has a side effect of exiting the application with inconsistent error code: 255 under Unix but 127 under MSW with MSVC. While changing the default exit code in this case is probably a bad idea because there are surely people relying on the current values, at least allow changing it by explicitly calling the new SetErrorExitCode() function.