| 783 | |
| 784 | |
| 785 | LUA_API void lua_rawseti (lua_State *L, int idx, lua_Integer n) { |
| 786 | StkId o; |
| 787 | Table *t; |
| 788 | lua_lock(L); |
| 789 | api_checknelems(L, 1); |
| 790 | o = index2addr(L, idx); |
| 791 | api_check(ttistable(o), "table expected"); |
| 792 | t = hvalue(o); |
| 793 | luaH_setint(L, t, n, L->top - 1); |
| 794 | luaC_barrierback(L, t, L->top-1); |
| 795 | L->top--; |
| 796 | lua_unlock(L); |
| 797 | } |
| 798 | |
| 799 | |
| 800 | LUA_API void lua_rawsetp (lua_State *L, int idx, const void *p) { |
no test coverage detected