MCPcopy Create free account
hub / github.com/NativeScript/android / GetRuntime

Method GetRuntime

test-app/runtime/src/main/cpp/Runtime.cpp:152–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152Runtime* Runtime::GetRuntime(int runtimeId) {
153 auto itFound = s_id2RuntimeCache.find(runtimeId);
154 auto runtime =
155 (itFound != s_id2RuntimeCache.end()) ? itFound->second : nullptr;
156
157 if (runtime == nullptr) {
158 stringstream ss;
159 ss << "Cannot find runtime for id:" << runtimeId;
160 throw NativeScriptException(ss.str());
161 }
162
163 return runtime;
164}
165
166Runtime* Runtime::GetRuntime(v8::Isolate* isolate) {
167 auto it = s_isolate2RuntimesCache.find(isolate);

Callers

nothing calls this directly

Calls 3

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected