| 49 | } |
| 50 | |
| 51 | int EnumBase_obj::__Compare(const hx::Object *inRHS) const |
| 52 | { |
| 53 | if (inRHS->__GetType()!=vtEnum) return -1; |
| 54 | const EnumBase_obj *rhs = static_cast<const EnumBase_obj *>(inRHS); |
| 55 | |
| 56 | if (_hx_tag!=rhs->_hx_tag || GetEnumName()!=rhs->GetEnumName()) return -1; |
| 57 | if (mFixedFields!=rhs->mFixedFields) return -1; |
| 58 | if (!mFixedFields) return 0; |
| 59 | |
| 60 | const cpp::Variant *f0 = _hx_getFixed(); |
| 61 | const cpp::Variant *f1 = rhs->_hx_getFixed(); |
| 62 | for(int i=0;i<mFixedFields;i++) |
| 63 | if ( f0[i] != f1[i]) |
| 64 | return -1; |
| 65 | |
| 66 | return 0; |
| 67 | } |
| 68 | |
| 69 | bool __hxcpp_enum_eq( ::hx::EnumBase a, ::hx::EnumBase b) |
| 70 | { |
nothing calls this directly
no test coverage detected