| 779 | |
| 780 | |
| 781 | LUA_API void lua_rawseti (lua_State *L, int idx, int n) { |
| 782 | StkId t; |
| 783 | lua_lock(L); |
| 784 | api_checknelems(L, 1); |
| 785 | t = index2addr(L, idx); |
| 786 | api_check(L, ttistable(t), "table expected"); |
| 787 | luaH_setint(L, hvalue(t), n, L->top - 1); |
| 788 | luaC_barrierback(L, gcvalue(t), L->top-1); |
| 789 | L->top--; |
| 790 | lua_unlock(L); |
| 791 | } |
| 792 | |
| 793 | |
| 794 | LUA_API void lua_rawsetp (lua_State *L, int idx, const void *p) { |