rename jni function by macro (#1467)

* rename jni function by macro

* modify JNI macro name
This commit is contained in:
W-MTZing
2018-08-22 09:21:35 +08:00
committed by minggo
parent a598118378
commit e284a0efd1
5 changed files with 66 additions and 26 deletions
@@ -37,9 +37,14 @@
#define LOG_TAG "JavaScriptJavaBridge"
#ifndef ORG_JAVABRIDGE_CLASS_NAME
#define ORG_JAVABRIDGE_CLASS_NAME org_cocos2dx_lib_Cocos2dxJavascriptJavaBridge
#endif
#define JNI_JSJAVABRIDGE(FUNC) JNI_METHOD1(ORG_JAVABRIDGE_CLASS_NAME,FUNC)
extern "C" {
JNIEXPORT jint JNICALL Java_org_cocos2dx_lib_Cocos2dxJavascriptJavaBridge_evalString
JNIEXPORT jint JNICALL JNI_JSJAVABRIDGE(evalString)
(JNIEnv *env, jclass cls, jstring value)
{
se::AutoHandleScope hs;