摘要: #include #include extern "C"{#include "lua-5.2.2/src/lua.h"#include "lua-5.2.2/src/lauxlib.h"#include "lua-5.2.2/src/lualib.h"}//定义库函数static int l_dir... 阅读全文
posted @ 2015-03-02 14:51 zzyoucan 阅读(568) 评论(0) 推荐(0) 编辑
摘要: #include #include extern "C"{/*头文件lua.h定义了Lua提供的基础函数,包括创建Lua环境、调用Lua函数、读写Lua环境中全局变量,以及注册供Lua调用的新函数等等*/#include "lua-5.2.2/src/lua.h"/*头文件lauxlib.h定义了辅... 阅读全文
posted @ 2015-03-02 10:58 zzyoucan 阅读(4394) 评论(0) 推荐(0) 编辑