MCPcopy Create free account
hub / github.com/ThePhD/sol2 / ~basic_reference

Method ~basic_reference

include/sol/reference.hpp:632–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 1

derefFunction · 0.85

Tested by

no test coverage detected