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