MCPcopy Create free account
hub / github.com/ThePhD/sol2 / copy_ref

Method copy_ref

include/sol/reference.hpp:262–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 int ref = LUA_NOREF;
261
262 int copy_ref(lua_State* L_) const noexcept {
263 if (ref == LUA_NOREF)
264 return LUA_NOREF;
265 push(L_);
266 return luaL_ref(L_, LUA_REGISTRYINDEX);
267 }
268
269 lua_State* copy_assign_ref(lua_State* L_, lua_State* rL, const stateless_reference& r) {
270 if (valid(L_)) {

Callers

nothing calls this directly

Calls 1

pushFunction · 0.85

Tested by

no test coverage detected