| 124 | } |
| 125 | |
| 126 | extern "C" int EngineRunCompiledCodeMain(int argc, char *argv[], const void *entry_point, |
| 127 | const void *bytecodefb, size_t static_size, |
| 128 | const lobster::block_t *vtables) { |
| 129 | #ifdef USE_EXCEPTION_HANDLING |
| 130 | try |
| 131 | #endif |
| 132 | { |
| 133 | NativeRegistry nfr; |
| 134 | RegisterCoreEngineBuiltins(nfr); |
| 135 | EngineRunByteCode(CompiledInit(argc, argv, entry_point, bytecodefb, static_size, vtables, |
| 136 | SDLLoadFile, nfr)); |
| 137 | } |
| 138 | #ifdef USE_EXCEPTION_HANDLING |
| 139 | catch (string &s) { |
| 140 | LOG_ERROR(s); |
| 141 | EngineExit(1); |
| 142 | } |
| 143 | #endif |
| 144 | EngineExit(0); |
| 145 | return 0; |
| 146 | } |
nothing calls this directly
no test coverage detected