| 2518 | |
| 2519 | |
| 2520 | LUA_API void lua_rawset (lua_State *L, int idx) { |
| 2521 | StkId t; |
| 2522 | lua_lock(L); |
| 2523 | api_checknelems(L, 2); |
| 2524 | t = index2adr(L, idx); |
| 2525 | api_check(L, ttistable(t)); |
| 2526 | setobj2t(L, luaH_set(L, hvalue(t), L->top-2), L->top-1); |
| 2527 | luaC_barriert(L, hvalue(t), L->top-1); |
| 2528 | L->top -= 2; |
| 2529 | lua_unlock(L); |
| 2530 | } |
| 2531 | |
| 2532 | |
| 2533 | LUA_API void lua_rawseti (lua_State *L, int idx, int n) { |
no test coverage detected