| 630 | } |
| 631 | |
| 632 | ~basic_reference() noexcept { |
| 633 | if (lua_state() == nullptr || ref == LUA_NOREF) |
| 634 | return; |
| 635 | deref(); |
| 636 | } |
| 637 | |
| 638 | basic_reference(const basic_reference& o) noexcept : stateless_reference(o.copy_ref()), luastate(o.lua_state()) { |
| 639 | } |