2013年2月4日

[Lua]c解析lua 嵌套table

摘要: void ParseLuaTable(lua_State *L){ if (!lua_istable(L, -1)) { return; } lua_pushnil(L); while (lua_next(L, -2)) { fprintf(stdout, "%s : %s ", luaL_typename(L,-2), luaL_typename(L,-1)); int nKeyType = lua_type(L, -2); int nValueType = lua_type(L, -1); ... 阅读全文

posted @ 2013-02-04 14:37 快乐的大猪 阅读(1522) 评论(0) 推荐(1) 编辑

导航