| 767 | |
| 768 | |
| 769 | LUA_API void lua_rawset (lua_State *L, int idx) { |
| 770 | StkId o; |
| 771 | Table *t; |
| 772 | lua_lock(L); |
| 773 | api_checknelems(L, 2); |
| 774 | o = index2addr(L, idx); |
| 775 | api_check(ttistable(o), "table expected"); |
| 776 | t = hvalue(o); |
| 777 | setobj2t(L, luaH_set(L, t, L->top-2), L->top-1); |
| 778 | invalidateTMcache(t); |
| 779 | luaC_barrierback(L, t, L->top-1); |
| 780 | L->top -= 2; |
| 781 | lua_unlock(L); |
| 782 | } |
| 783 | |
| 784 | |
| 785 | LUA_API void lua_rawseti (lua_State *L, int idx, lua_Integer n) { |
no test coverage detected