cocos2dx-lua开发, c++函数绑定导出lua方法

一、在项目的Classes目录里新建一个头文件命名为:CustomExport.h和源文件CustomExport.cpp并添加进VS工程 二、添加代码 1.在CustomExport.h头文件中添加如下代码: #ifndef _CUSTOM_EXPORT_H_ #define _CUSTOM_EXPORT_H_ #ifdef __cplusplus extern "C" { #endif #in
相关文章
相关标签/搜索