mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-11 19:49:32 +00:00
25 lines
399 B
C++
25 lines
399 B
C++
#include <jni.h>
|
|
#include <cxxtest.h>
|
|
|
|
jobjectArray
|
|
Java_cxxtest_fetch (JNIEnv *env, jobject _this)
|
|
{
|
|
jclass cls;
|
|
jfieldID fid;
|
|
jobjectArray obj;
|
|
|
|
cls = env->GetObjectClass (_this);
|
|
if (! cls)
|
|
return 0;
|
|
|
|
fid = env->GetFieldID (cls, "F", "[Ljava/lang/Object;");
|
|
if (! fid)
|
|
return 0;
|
|
|
|
obj = reinterpret_cast<jobjectArray> (env->GetObjectField (_this, fid));
|
|
|
|
return obj;
|
|
}
|
|
|
|
|