#define JNIEXPORT __declspec(dllexport)
#define JNIIMPORT __declspec(dllimport)
#define JNICALL __stdcall...JNICALL宏定义作用 :
① Windows JNICALL : JNICALL 被定义为 __stdcall , __stdcall 是一种函数调用参数的约定 , 在 Windows 中调用函数时..., 该函数的参数是以 栈 的形式保存的 , 栈 中元素是后进先出的 , __stdcall 表示参数是从右到左保存的 ;
__stdcall 用于 定义 函数入栈规则 ( 从右到左 ) , 和 堆栈清理规则..." , 在编译时 , 使用 " __stdcall " 代替 JNICALL ;
2 ....jobject instance, jint i, jstring s_) {
}
② 编译过程中宏替换后的代码 :
extern "C"
__declspec(dllexport) void __stdcall