diff --git a/Kernel/API/KResult.h b/Kernel/API/KResult.h index 76e7cb87a0..2ddf0f95d0 100644 --- a/Kernel/API/KResult.h +++ b/Kernel/API/KResult.h @@ -40,6 +40,10 @@ public: bool operator!=(KSuccessTag) const { return is_error(); } bool operator==(KSuccessTag) const { return !is_error(); } + // NOTE: These are here to make KResult usable with TRY() + KResult release_error() { return *this; } + void release_value() { } + private: template friend class KResultOr;