| 8607 | } |
| 8608 | |
| 8609 | lua_State* move_assign(lua_State* L, lua_State* rL, stateless_reference&& r) { |
| 8610 | if (valid(L)) { |
| 8611 | deref(L); |
| 8612 | } |
| 8613 | ref = r.ref; |
| 8614 | r.ref = LUA_NOREF; |
| 8615 | return rL; |
| 8616 | } |
| 8617 | |
| 8618 | protected: |
| 8619 | int stack_index () const noexcept { |