| 2531 | |
| 2532 | |
| 2533 | LUA_API void lua_rawseti (lua_State *L, int idx, int n) { |
| 2534 | StkId o; |
| 2535 | lua_lock(L); |
| 2536 | api_checknelems(L, 1); |
| 2537 | o = index2adr(L, idx); |
| 2538 | api_check(L, ttistable(o)); |
| 2539 | setobj2t(L, luaH_setnum(L, hvalue(o), n), L->top-1); |
| 2540 | luaC_barriert(L, hvalue(o), L->top-1); |
| 2541 | L->top--; |
| 2542 | lua_unlock(L); |
| 2543 | } |
| 2544 | |
| 2545 | |
| 2546 | LUA_API int lua_setmetatable (lua_State *L, int objindex) { |
no test coverage detected