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

Method EnsureInstance

test-app/runtime/src/main/cpp/JType.cpp:90–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void JType::EnsureInstance(JEnv env, JType** instance, Type type) {
91 if ((*instance) != nullptr) {
92 return;
93 }
94
95 *instance = new JType();
96
97 (*instance)->Init(env, type);
98}
99
100void JType::Init(JEnv env, Type type) {
101 switch (type) {

Callers

nothing calls this directly

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected