MCPcopy Create free account
hub / github.com/crownengine/crown / main_runtime

Function main_runtime

src/device/device.cpp:1083–1093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1081Device *_device = NULL;
1082
1083int main_runtime(const DeviceOptions &opts)
1084{
1085 CE_ASSERT(_device == NULL, "Crown already initialized");
1086 console_server_globals::init();
1087 _device = CE_NEW(default_allocator(), Device)(opts, *console_server());
1088 int ec = _device->main_loop();
1089 CE_DELETE(default_allocator(), _device);
1090 _device = NULL;
1091 console_server_globals::shutdown();
1092 return ec;
1093}
1094
1095Device *device()
1096{

Callers 4

runMethod · 0.85
runMethod · 0.85
process_commandMethod · 0.85
runMethod · 0.85

Calls 4

console_serverFunction · 0.85
main_loopMethod · 0.80
initFunction · 0.70
shutdownFunction · 0.70

Tested by

no test coverage detected