OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jni/] [cxxtest.cc] - Rev 765

Compare with Previous | Blame | View Log

#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;
}
 
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.