void lua_settable (lua_State *L, int index);

Does the equivalent to t[k] = v, where t is the value at the given index, v is the value at the top of the stack, and k is the value just below the top.

This function pops both the key and the value from the stack. As in Lua, this function may trigger a metamethod for the "newindex" event (see §2.4).

lua_settable 前栈情况

-----------------top-------------------
`Val'
1
table
-----------------end-------------------

lua_settable(L, -3) 之后

-----------------top-------------------
table
-----------------end-------------------

最新文章

  1. JAVA大数据数组排序
  2. hdu 5269 ZYB loves Xor I
  3. 说不尽的MVVM(1) – Why MVVM
  4. gdb使用_转
  5. RaidoGroup+RadioButton模拟android下拉框弹出List
  6. Python程序的混淆和加密
  7. ATL一:CWindowImpl
  8. event事件:
  9. JS之路——常用正则表达式
  10. C# 同步/并发队列ConcurrentQueue (表示线程安全的先进先出 (FIFO) 集合)
  11. ubuntu系统下设置静态IP
  12. T-SQL技巧收集——拆分字符串
  13. meta--------link
  14. 二.GC相关之Java内存模型
  15. 初识Log4Net
  16. Unity Shader 基础(4) 由深度纹理重建坐标
  17. ctrl c 中文字符到 vnc 里,中文字符已经被转码
  18. gpio模拟I2C,驱动pcf8574T
  19. sqlserver收缩数据库
  20. js短信验证码

热门文章

  1. [转载]设置Chrome忽略网站证书错误
  2. Spiral Matrix II leetcode java
  3. 字符串 CSV解析 表格 逗号分隔值 通讯录 电话簿 MD
  4. TRIZ系列-创新原理-13-反过来做原理
  5. scikit-learn——快速入门 - daniel-D(转)
  6. spark0.9分布式安装
  7. [Jest] Set up Testing Globals in an Application with Jest
  8. Direct2D教程III——几何(Geometry)对象
  9. Android通用框架设计与完整电商APP开发系列文章
  10. ecshop中smarty最常用的6大基本语法