From 1e075c248fa82142762178fc56f0d0e42f0d7c9b Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sat, 3 Jun 2023 18:53:05 +0300 Subject: [PATCH] BAN: Errors now includes assert.h --- BAN/include/BAN/Errors.h | 1 + 1 file changed, 1 insertion(+) diff --git a/BAN/include/BAN/Errors.h b/BAN/include/BAN/Errors.h index 3a00435958..ac649a0b8d 100644 --- a/BAN/include/BAN/Errors.h +++ b/BAN/include/BAN/Errors.h @@ -13,6 +13,7 @@ #define MUST(expr) ({ auto&& e = expr; if (e.is_error()) Kernel::panic("{}", e.error()); e.release_value(); }) #define MUST_REF(expr) *({ auto&& e = expr; if (e.is_error()) Kernel::panic("{}", e.error()); &e.release_value(); }) #else + #include #define MUST(expr) ({ auto&& e = expr; assert(!e.is_error()); e.release_value(); }) #define MUST_REF(expr) *({ auto&& e = expr; assert(!e.is_error()); &e.release_value(); }) #endif