#ifndef __LUA_LPEG_H_ #define __LUA_LPEG_H_ #if __cplusplus extern "C" { #endif #include "lua.h" #include "lauxlib.h" int luaopen_lpeg(lua_State *L); #if __cplusplus } #endif //int luaopen_lpeg(lua_State *L); #endif
@H_403_0@3、在cocos2d-x 中lua_extensions 中需要为添加相应头文件,相对应的lua库注册,在static luaL_Reg luax_exts[] 中添加需要添加的代码{"lpeg",luaopen_lpeg}。 @H_403_0@4、android 支持,在Android.mk中添加 增加的文件。