diff options
Diffstat (limited to 'core/object_id.h')
-rw-r--r-- | core/object_id.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/object_id.h b/core/object_id.h index f0ff2a24f5..6ab1a3031a 100644 --- a/core/object_id.h +++ b/core/object_id.h @@ -12,6 +12,7 @@ class ObjectID { uint64_t id = 0; public: + _ALWAYS_INLINE_ bool is_reference() const { return (id & (uint64_t(1) << 63)) != 0; } _ALWAYS_INLINE_ bool is_valid() const { return id != 0; } _ALWAYS_INLINE_ bool is_null() const { return id == 0; } _ALWAYS_INLINE_ operator uint64_t() const { return id; } |