Skip to content

Instantly share code, notes, and snippets.

@DieHertz
Last active December 25, 2015 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DieHertz/7005898 to your computer and use it in GitHub Desktop.
Save DieHertz/7005898 to your computer and use it in GitHub Desktop.
import core.runtime;
import std.random;
struct JNIEnv {}
struct _jobject {}
alias _jobject* jobject;
alias int jint;
extern (C) {
void Java_Test_dinit(JNIEnv* env, jobject object) {
Runtime.initialize();
}
jint Java_Test_dget(JNIEnv* env, jobject object) {
return uniform(0, 100);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment