void EngineExit(int code) { GraphicsShutDown(); #ifdef __EMSCRIPTEN__ emscripten_force_exit(code); #endif exit(code); // Needed at least on iOS to forcibly shut down the wrapper main() }
STARTDECL(gl_shutdown) () { GraphicsShutDown(); return Value(); }