aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni/JNIMem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'java/jni/JNIMem.cxx')
-rw-r--r--java/jni/JNIMem.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/java/jni/JNIMem.cxx b/java/jni/JNIMem.cxx
new file mode 100644
index 00000000..7c34a98e
--- /dev/null
+++ b/java/jni/JNIMem.cxx
@@ -0,0 +1,10 @@
+#include "JNIMem.hpp"
+
+
+JavaVM* vm;
+thread_local JNIEnvContainer jni_env;
+
+jint JNI_OnLoad(JavaVM *initVM, void *reserved) {
+ vm = initVM;
+ return JNI_VERSION_1_8;
+}