Last active
December 25, 2015 16:29
-
-
Save DieHertz/7005898 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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