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

Method __Compare

src/Dynamic.cpp:128–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 cpp::Int64 __ToInt64() const HXCPP_OVERRIDE { return (cpp::Int64)mValue; }
127
128 int __Compare(const hx::Object *inRHS) const HXCPP_OVERRIDE
129 {
130 double rval = inRHS->__ToDouble();
131 if (rval==mValue)
132 return 0;
133
134 return mValue < rval ? -1 : 1;
135 }
136
137
138 double mValue;

Callers

nothing calls this directly

Calls 1

__ToDoubleMethod · 0.45

Tested by

no test coverage detected