摘要: 1. 找到 LuaPlus 工程下的 Lua Source Files 下的 llex.c; 2. 在该文件中找到下面所列函数; static int llex (LexState *ls, SemInfo *seminfo) 3. 这是 Lua 的语法分析模块的关键函数,它由一长段 switch 阅读全文
posted @ 2015-02-12 17:51 疯陈演义 阅读(2070) 评论(0) 推荐(0) 编辑
摘要: #include "StdAfx.h" #include "LuaEx.h" lua_State *L=NULL; CFun Lua_Fun; CLuaEx::CLuaEx(void) { } CLuaEx::~CLuaEx(void) { } static int Lua_Xun(lua_State *L) { Lua_Fun.Fun_Xun(lua_tonumber(L,1),lu... 阅读全文
posted @ 2015-02-12 17:40 疯陈演义 阅读(243) 评论(0) 推荐(0) 编辑