3 #include <android/log.h> 11 #define STRINGIZE_DETAIL(x) #x 12 #define STRINGIZE(x) STRINGIZE_DETAIL(x) 18 LocalReferenceHolder(JNIEnv* env,
const char* func,
const char* line): _env(env), _func(func), _line(line)
21 __android_log_print(ANDROID_LOG_DEBUG,
"SDL",
"LocalReferenceHolder enter: %s %s", _func, _line);
22 _env->PushLocalFrame(16);
28 _env->PopLocalFrame(0);
31 __android_log_print(ANDROID_LOG_DEBUG,
"SDL",
"LocalReferenceHolder left: %s %s", _func, _line);
39 #define LOCAL_REF_HOLDER(env) LocalReferenceHolder<false> _lr_(env, __func__, STRINGIZE(__LINE__)); 40 #define LOCAL_REF_HOLDER_D(env) LocalReferenceHolder<true> _lr_(env, __func__, STRINGIZE(__LINE__)); 44 #define JNI_NOT_NULL(v) if (!v) { __android_log_print(ANDROID_LOG_DEBUG, "SDL", "NOTNULL! %d %s", __LINE__, __FILE__); throw notFound();} 47 JNIEnv* jniGetEnv(
void);
49 std::string jniGetString(JNIEnv* env, jstring jstr);
50 void jniGetStringArray(vector<std::string>& res, JNIEnv* env, jobjectArray jarray);
51 jobjectArray jniGetObjectStringArray(
const vector<std::string>& src, JNIEnv* env);
Definition: jniHelper.h:15
–oxgl-end–!
Definition: Actor.h:14
Definition: jniHelper.h:42