MCPcopy Create free account
hub / github.com/aardappel/treesheets / EngineRunCompiledCodeMain

Function EngineRunCompiledCodeMain

lobster/src/engine.cpp:126–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126extern "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}

Callers

nothing calls this directly

Calls 4

EngineRunByteCodeFunction · 0.85
CompiledInitFunction · 0.85
EngineExitFunction · 0.85

Tested by

no test coverage detected