| 689 | |
| 690 | |
| 691 | LUA_API void lua_rawseti (lua_State *L, int idx, int n) { |
| 692 | StkId o; |
| 693 | lua_lock(L); |
| 694 | api_checknelems(L, 1); |
| 695 | o = index2adr(L, idx); |
| 696 | api_check(L, ttistable(o)); |
| 697 | setobj2t(L, luaH_setnum(L, hvalue(o), n), L->top-1); |
| 698 | luaC_barriert(L, hvalue(o), L->top-1); |
| 699 | L->top--; |
| 700 | lua_unlock(L); |
| 701 | } |
| 702 | |
| 703 | |
| 704 | LUA_API int lua_setmetatable (lua_State *L, int objindex) { |
no test coverage detected