diff options
Diffstat (limited to 'dev/Kernel/NewKit/ErrorOr.h')
| -rw-r--r-- | dev/Kernel/NewKit/ErrorOr.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dev/Kernel/NewKit/ErrorOr.h b/dev/Kernel/NewKit/ErrorOr.h index 3f32b033..7c879cc8 100644 --- a/dev/Kernel/NewKit/ErrorOr.h +++ b/dev/Kernel/NewKit/ErrorOr.h @@ -67,9 +67,14 @@ namespace NeOS return mRef; } + BOOL HasError() + { + return this->mId > 0; + } + private: Ref<T> mRef; - Int32 mId{0}; + UInt32 mId{0}; }; using ErrorOrAny = ErrorOr<voidPtr>; |
