Added is_null() helper method to variant.

This commit is contained in:
Relintai 2022-03-22 09:38:10 +01:00
parent e16d80eecb
commit 94d4abe77d

View File

@ -182,6 +182,7 @@ public:
bool is_ref() const; bool is_ref() const;
_FORCE_INLINE_ bool is_num() const { return type == INT || type == REAL; }; _FORCE_INLINE_ bool is_num() const { return type == INT || type == REAL; };
_FORCE_INLINE_ bool is_array() const { return type >= ARRAY; }; _FORCE_INLINE_ bool is_array() const { return type >= ARRAY; };
_FORCE_INLINE_ bool is_null() const { return type == NIL; };
bool is_shared() const; bool is_shared() const;
bool is_zero() const; bool is_zero() const;
bool is_one() const; bool is_one() const;