mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-24 23:32:06 +00:00
17 lines
379 B
C
17 lines
379 B
C
#include <stdio.h>
|
|
#include <pr11951.h>
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_pr11951_nmethod (JNIEnv *env, jclass myclass)
|
|
{
|
|
jmethodID method;
|
|
jobject r;
|
|
|
|
method = (*env)->GetStaticMethodID (env, myclass, "dosomething",
|
|
"()Ljava/lang/Object;");
|
|
r = (*env)->CallStaticObjectMethod (env, myclass, method);
|
|
printf ("%d\n", r == NULL);
|
|
|
|
(*env)->ExceptionClear (env);
|
|
}
|