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

Method __Compare

src/Dynamic.cpp:69–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 cpp::Int64 __ToInt64() const HXCPP_OVERRIDE { return mValue; }
68
69 int __Compare(const hx::Object *inRHS) const HXCPP_OVERRIDE
70 {
71 double diff = mValue - inRHS->__ToDouble();
72 return diff < 0 ? -1 : diff==0 ? 0 : 1;
73 }
74
75
76 int mValue;

Callers

nothing calls this directly

Calls 1

__ToDoubleMethod · 0.45

Tested by

no test coverage detected