| 123 | } |
| 124 | |
| 125 | extern "C" JNIEXPORT void JNICALL Java_me_daquexian_dnnlibrary_Model_dispose( |
| 126 | JNIEnv *env, jobject obj /* this */) { |
| 127 | auto handle = getHandle<Model>(env, obj); |
| 128 | if (handle != nullptr) { |
| 129 | delete handle; |
| 130 | setHandle(env, obj, nullptr); |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | jint throwException(JNIEnv *env, std::string message) { |
| 135 | jclass exClass; |
nothing calls this directly
no test coverage detected