| 817 | |
| 818 | |
| 819 | LUA_API void lua_rawseti(lua_State *L, int idx, lua_Integer n) { |
| 820 | StkId o; |
| 821 | lua_lock(L); |
| 822 | api_checknelems(L, 1); |
| 823 | o = index2addr(L, idx); |
| 824 | api_check(L, ttistable(o), "table expected"); |
| 825 | luaH_setint(L, hvalue(o), n, L->top - 1); |
| 826 | luaC_barrierback(L, hvalue(o), L->top - 1); |
| 827 | L->top--; |
| 828 | lua_unlock(L); |
| 829 | } |
| 830 | |
| 831 | |
| 832 | LUA_API void lua_rawsetp(lua_State *L, int idx, const void *p) { |
no test coverage detected