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