MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / initField

Function initField

interface/java_binding/src/main/cpp/libktx-jni.cpp:192–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192bool initField(JNIEnv *env, jclass cls, jfieldID& field, const char *name, const char *signature)
193{
194 field = env->GetFieldID(cls, name, signature);
195 if (field == NULL)
196 {
197 std::cerr << "Failed to initialize field " << name << std::endl;
198 return false;
199 }
200 return true;
201}
202
203bool initMethod(JNIEnv *env, jclass cls, jmethodID& method, const char *name, const char *signature)
204{

Callers 1

JNI_OnLoadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected