From 03a97d76ba9d9c1f477ecfab54d6d94340648931 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Wed, 14 Aug 2024 11:48:04 +0200 Subject: HError.cxx: Add documentation. Signed-off-by: Amlal EL Mahrouss --- Kernel/Sources/HError.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Kernel/Sources') diff --git a/Kernel/Sources/HError.cxx b/Kernel/Sources/HError.cxx index 0df3ea6d..e9a7ad0c 100644 --- a/Kernel/Sources/HError.cxx +++ b/Kernel/Sources/HError.cxx @@ -21,12 +21,14 @@ namespace Kernel ke_stop(RUNTIME_CHECK_BAD_BEHAVIOR); } - return false; + return true; } - Void err_bug_check_raise(void) noexcept + /// @brief Tells if we should raise a bug check not. + /// @param void + /// @return void + Void err_bug_check_raise(Void) noexcept { - if (!cRaise) - cRaise = true; + cRaise = true; } } // namespace Kernel -- cgit v1.2.3