c++ 遍历 lua 表 类型错误 导致 PANIC: unprotected error in call to Lua API (invalid key to ‘next‘)
---luapath_table={"../lua_test","../lua_scripts"}//c++:lua_pushnil(L);while(lua_next(L,-2)){intkey=lua_tointeger(L,-2);//这里发生错误时constchar*value=lua_tostring(L,-1);printf("%u=>%s\n",key,value);lua_pop(