JNIEXPORT int JNICALL
时间: 2023-11-02 08:06:34 浏览: 78
JNIEXPORT和JNICALL是JNI中的宏定义。在Windows平台中,JNIEXPORT和JNICALL宏用于声明一个函数是从Java调用的,并将其导出为JNI方法。在Linux中,JNICALL宏没有定义,可以直接置空,因此不需要显式地使用JNIEXPORT和JNICALL宏来声明JNI方法。而在代码中引用的和则展示了在C/C++代码中如何使用JNIEXPORT和JNICALL宏定义一个JNI方法。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [【Android NDK 开发】JNI 方法解析 ( JNIEXPORT 与 JNICALL 宏定义作用 )](https://blog.csdn.net/han1202012/article/details/104072587)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [linux调用jni生成的so](https://download.csdn.net/download/qbhainan/8958457)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文