| 371 | #endif |
| 372 | |
| 373 | int 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 | } |
nothing calls this directly
no test coverage detected