MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / copy

Method copy

extlibs/sol3/include/sol/sol.hpp:8594–8599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)) {

Callers

nothing calls this directly

Calls 2

pushFunction · 0.85
luaL_refFunction · 0.85

Tested by

no test coverage detected