MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __Compare

Method __Compare

src/Array.cpp:263–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263int ArrayBase::__Compare(const hx::Object *inRHS) const
264{
265 if (inRHS==this)
266 return 0;
267 if (inRHS->__GetType()!=vtArray)
268 return -1;
269 ArrayCommon *common = (ArrayCommon *)inRHS;
270 hx::Object *implementation = common->__GetRealObject();
271 return implementation<this ? -1 : implementation!=this;
272}
273
274String ArrayBase::__ToString() const { return HX_CSTRING("Array"); }
275String ArrayBase::toString()

Callers

nothing calls this directly

Calls 1

__GetTypeMethod · 0.45

Tested by

no test coverage detected