| 755 | |
| 756 | |
| 757 | LUA_API void lua_seti (lua_State *L, int idx, lua_Integer n) { |
| 758 | StkId t; |
| 759 | lua_lock(L); |
| 760 | api_checknelems(L, 1); |
| 761 | t = index2addr(L, idx); |
| 762 | setivalue(L->top++, n); |
| 763 | luaV_settable(L, t, L->top - 1, L->top - 2); |
| 764 | L->top -= 2; /* pop value and key */ |
| 765 | lua_unlock(L); |
| 766 | } |
| 767 | |
| 768 | |
| 769 | LUA_API void lua_rawset (lua_State *L, int idx) { |
nothing calls this directly
no test coverage detected