MCPcopy Create free account
hub / github.com/WheretIB/nullc / ReplaceObject

Method ReplaceObject

NULLC/StdLib.cpp:596–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596NULLCRef NULLC::ReplaceObject(NULLCRef l, NULLCRef r)
597{
598 if(l.typeID != r.typeID)
599 {
600 nullcThrowError("ERROR: cannot convert from %s ref to %s ref", &linker->exSymbols[linker->exTypes[r.typeID].offsetToName], &linker->exSymbols[linker->exTypes[l.typeID].offsetToName]);
601 return l;
602 }
603 memcpy(l.ptr, r.ptr, linker->exTypes[r.typeID].size);
604 return l;
605}
606
607void NULLC::SwapObjects(NULLCRef l, NULLCRef r)
608{

Callers

nothing calls this directly

Calls 1

nullcThrowErrorFunction · 0.70

Tested by

no test coverage detected