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