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

Method CompareObjects

NULLC/StdLib.cpp:624–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622}
623
624int NULLC::CompareObjects(NULLCRef l, NULLCRef r)
625{
626 if(l.typeID != r.typeID)
627 {
628 nullcThrowError("ERROR: types don't match (%s ref, %s ref)", &linker->exSymbols[linker->exTypes[r.typeID].offsetToName], &linker->exSymbols[linker->exTypes[l.typeID].offsetToName]);
629 return 0;
630 }
631 return 0 == memcmp(l.ptr, r.ptr, linker->exTypes[l.typeID].size);
632}
633
634int NULLC::StrEqual(NULLCArray a, NULLCArray b)
635{

Callers

nothing calls this directly

Calls 1

nullcThrowErrorFunction · 0.70

Tested by

no test coverage detected