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