| 8592 | int ref = LUA_NOREF; |
| 8593 | |
| 8594 | int copy(lua_State* L) const noexcept { |
| 8595 | if (ref == LUA_NOREF) |
| 8596 | return LUA_NOREF; |
| 8597 | push(L); |
| 8598 | return luaL_ref(L, LUA_REGISTRYINDEX); |
| 8599 | } |
| 8600 | |
| 8601 | lua_State* copy_assign(lua_State* L, lua_State* rL, const stateless_reference& r) { |
| 8602 | if (valid(L)) { |