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

Method copy_assign_ref

include/sol/reference.hpp:269–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267 }
268
269 lua_State* copy_assign_ref(lua_State* L_, lua_State* rL, const stateless_reference& r) {
270 if (valid(L_)) {
271 deref(L_);
272 }
273 ref = r.copy_ref(L_);
274 return rL;
275 }
276
277 lua_State* move_assign(lua_State* L_, lua_State* rL, stateless_reference&& r) {
278 if (valid(L_)) {

Callers

nothing calls this directly

Calls 2

derefFunction · 0.85
copy_refMethod · 0.45

Tested by

no test coverage detected