MCPcopy Create free account
hub / github.com/Kode/Kha / kickstart

Function kickstart

Backends/Kore-hxcpp/main.cpp:373–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371#endif
372
373int kickstart(int argc, char **argv) {
374 _hxcpp_argc = argc;
375 _hxcpp_argv = argv;
376 kinc_threads_init();
377 kha_loader_init();
378 HX_TOP_OF_STACK
379 hx::Boot();
380#ifdef NDEBUG
381 try {
382#endif
383 __boot_all();
384 __hxcpp_main();
385#ifdef NDEBUG
386 } catch (Dynamic e) {
387 __hx_dump_stack();
388 kinc_log(KINC_LOG_LEVEL_ERROR, "Error %s", e == null() ? "null" : e->toString().__CStr());
389#ifdef KINC_WINDOWS
390 MessageBoxW(NULL, e->toString().__WCStr(), NULL, MB_OK);
391#endif
392 return -1;
393 }
394#endif
395 return 0;
396}

Callers

nothing calls this directly

Calls 1

kha_loader_initFunction · 0.85

Tested by

no test coverage detected