Source

ojacare / camljava-0.3 / lib / jnijavamain.c

Full commit
#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);
}