| 682 | |
| 683 | |
| 684 | LUA_API void lua_rawseti (lua_State *L, int idx, int n) { |
| 685 | StkId o; |
| 686 | lua_lock(L); |
| 687 | api_checknelems(L, 1); |
| 688 | o = index2adr(L, idx); |
| 689 | api_check(L, ttistable(o)); |
| 690 | setobj2t(L, luaH_setnum(L, hvalue(o), n), L->top-1); |
| 691 | luaC_barriert(L, hvalue(o), L->top-1); |
| 692 | L->top--; |
| 693 | lua_unlock(L); |
| 694 | } |
| 695 | |
| 696 | |
| 697 | LUA_API int lua_setmetatable (lua_State *L, int objindex) { |
no test coverage detected