解决方法
如果你使用
LuaBind就像一个注册的电话一样简单.至于自己卷起来,你需要看一下
lua_next的功能.
基本上代码如下:
lua_pushnil(state); // first key index = lua_gettop(state); while ( lua_next(state,index) ) { // traverse keys something = lua_tosomething(state,-1); // tonumber for example results.push_back(something); lua_pop(state,1); // stack restore }