| 756 | |
| 757 | |
| 758 | LUA_API void lua_setfield (lua_State *L, int idx, const char *k) { |
| 759 | StkId t; |
| 760 | lua_lock(L); |
| 761 | api_checknelems(L, 1); |
| 762 | t = index2addr(L, idx); |
| 763 | setsvalue2s(L, L->top++, luaS_new(L, k)); |
| 764 | luaV_settable(L, t, L->top - 1, L->top - 2); |
| 765 | L->top -= 2; /* pop value and key */ |
| 766 | lua_unlock(L); |
| 767 | } |
| 768 | |
| 769 | |
| 770 | LUA_API void lua_rawset (lua_State *L, int idx) { |
no test coverage detected