MCPcopy Create free account
hub / github.com/covscript/covscript / compare

Method compare

include/covscript/core/variable.hpp:1264–1271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1262 }
1263
1264 bool compare(const any &rhs) const
1265 {
1266 if (mDat != nullptr && rhs.mDat != nullptr &&
1267 (mDat->data.m_dispatcher == rhs.mDat->data.m_dispatcher || mDat->data.type() == rhs.mDat->data.type()))
1268 return mDat->data.m_dispatcher(operators::type::compare, &mDat->data, (void *) &rhs)._int;
1269 else
1270 return false;
1271 }
1272
1273 bool operator==(const any &var) const
1274 {

Callers 2

operator==Method · 0.95
operator!=Method · 0.95

Calls 1

typeMethod · 0.80

Tested by

no test coverage detected