Commits

camlspotter committed 6dae832 Draft

forgot to add jnijavamain.c

  • Participants
  • Parent commits fae319e
  • Branches android

Comments (0)

Files changed (1)

File camljava-0.3/lib/jnijavamain.c

+#include <caml/callback.h>
+#include <jni.h>
+#include "jnistubs.h"
+
+JNIEXPORT void JNICALL Java_fr_inria_caml_camljava_OCaml_startup(JNIEnv *jenv_from_java, jclass c, jobjectArray args)
+{
+    char *argv[] = { "hello", NULL };
+    jenv = jenv_from_java;
+    init_threading();
+    caml_startup(argv);
+}