| 669 | |
| 670 | |
| 671 | LUA_API void lua_rawset (lua_State *L, int idx) { |
| 672 | StkId t; |
| 673 | lua_lock(L); |
| 674 | api_checknelems(L, 2); |
| 675 | t = index2adr(L, idx); |
| 676 | api_check(L, ttistable(t)); |
| 677 | setobj2t(L, luaH_set(L, hvalue(t), L->top-2), L->top-1); |
| 678 | luaC_barriert(L, hvalue(t), L->top-1); |
| 679 | L->top -= 2; |
| 680 | lua_unlock(L); |
| 681 | } |
| 682 | |
| 683 | |
| 684 | LUA_API void lua_rawseti (lua_State *L, int idx, int n) { |