lua_settable

lua_settable(lua_State* L, int index)

 

就是把表在lua堆栈中的值弹出来,index 是table 在堆栈中的位置,假如 table 在 -3, 则key 应该是 -2,value 是 -1

 

相当于 table[key] = value.

posted on 2014-07-30 14:17  &大飞  阅读(350)  评论(0)    收藏  举报

导航