1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Allow <=> on bools

This commit is contained in:
Brian Fiete 2021-12-28 09:44:25 -05:00
parent 3570d2a87b
commit 252fe13a5d
3 changed files with 16 additions and 4 deletions

View file

@ -571,6 +571,7 @@ public:
virtual bool IsBoolean() { return false; }
virtual bool IsInteger() { return false; }
virtual bool IsIntegral() { return false; }
virtual bool IsIntegralOrBool() { return false; }
virtual bool IsIntPtr() { return false; }
virtual bool IsSigned() { return false; }
virtual bool IsSignedInt() { return false; }
@ -627,6 +628,7 @@ public:
virtual bool IsValueTypeOrValueTypePtr() override { return true; }
virtual bool IsBoolean() override { return mTypeDef->mTypeCode == BfTypeCode_Boolean; }
virtual bool IsIntegral() override { return (mTypeDef->mTypeCode >= BfTypeCode_Int8) && (mTypeDef->mTypeCode <= BfTypeCode_Char32); }
virtual bool IsIntegralOrBool() override { return (mTypeDef->mTypeCode >= BfTypeCode_Boolean) && (mTypeDef->mTypeCode <= BfTypeCode_Char32); }
virtual bool IsInteger() override { return (mTypeDef->mTypeCode >= BfTypeCode_Int8) && (mTypeDef->mTypeCode <= BfTypeCode_UIntUnknown); }
virtual bool IsIntPtr() override { return (mTypeDef->mTypeCode == BfTypeCode_IntPtr) || (mTypeDef->mTypeCode == BfTypeCode_UIntPtr); }
virtual bool IsIntPtrable() override