MCPcopy Create free account
hub / github.com/ALEX5402/NewBlackbox / JNI_OnLoad

Function JNI_OnLoad

Bcore/src/main/cpp/BoxCore.cpp:167–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167JNIEXPORT jint JNI_OnLoad(JavaVM *vm, void *reserved) {
168 JNIEnv *env;
169 VMEnv.vm = vm;
170 if (vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION_1_6) != JNI_OK) {
171 return JNI_EVERSION;
172 }
173 registerMethod(env);
174 return JNI_VERSION_1_6;
175}

Callers

nothing calls this directly

Calls 1

registerMethodFunction · 0.85

Tested by

no test coverage detected