mirror of https://github.com/adamdruppe/arsd.git
lol
This commit is contained in:
parent
136b4d0ad5
commit
721d99825e
4
jni.d
4
jni.d
|
@ -1051,7 +1051,7 @@ export jint JNI_OnLoad(JavaVM* vm, void* reserved) {
|
||||||
return JNI_ERR;
|
return JNI_ERR;
|
||||||
} catch(Throwable t) {
|
} catch(Throwable t) {
|
||||||
import core.stdc.stdio;
|
import core.stdc.stdio;
|
||||||
fprintf(stderr, "%s", (t.toString ~ "\n").ptr);
|
fprintf(stderr, "%s", (t.toString ~ "\n\0").ptr);
|
||||||
return JNI_ERR;
|
return JNI_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1991,7 +1991,7 @@ mixin template IJavaObjectImplementation(bool isNewClass) {
|
||||||
if((*env).RegisterNatives(env, internalJavaClassHandle_, nativeMethodsData_.ptr, cast(int) nativeMethodsData_.length)) {
|
if((*env).RegisterNatives(env, internalJavaClassHandle_, nativeMethodsData_.ptr, cast(int) nativeMethodsData_.length)) {
|
||||||
(*env).ExceptionDescribe(env);
|
(*env).ExceptionDescribe(env);
|
||||||
(*env).ExceptionClear(env);
|
(*env).ExceptionClear(env);
|
||||||
fprintf(stderr, ("RegisterNatives failed for " ~ typeof(this).stringof));
|
fprintf(stderr, ("RegisterNatives failed for " ~ typeof(this).stringof ~ "\0"));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue