| 714 | |
| 715 | |
| 716 | LUA_API void lua_rawseti (lua_State *L, int idx, int n) { |
| 717 | StkId o; |
| 718 | lua_lock(L); |
| 719 | api_checknelems(L, 1); |
| 720 | o = index2adr(L, idx); |
| 721 | api_check(L, ttistable(o)); |
| 722 | setobj2t(L, luaH_setnum(L, hvalue(o), n), L->top-1); |
| 723 | luaC_barriert(L, hvalue(o), L->top-1); |
| 724 | L->top--; |
| 725 | lua_unlock(L); |
| 726 | } |
| 727 | |
| 728 | |
| 729 | LUA_API int lua_setmetatable (lua_State *L, int objindex) { |
no test coverage detected