| 9175 | } |
| 9176 | |
| 9177 | lua_State* move_assign(lua_State* L, lua_State* rL, stateless_reference&& r) { |
| 9178 | if (valid(L)) { |
| 9179 | deref(L); |
| 9180 | } |
| 9181 | ref = r.ref; |
| 9182 | r.ref = LUA_NOREF; |
| 9183 | return rL; |
| 9184 | } |
| 9185 | |
| 9186 | protected: |
| 9187 | int stack_index() const noexcept { |