diff options
Diffstat (limited to 'Kernel/Sources/HError.cxx')
| -rw-r--r-- | Kernel/Sources/HError.cxx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Kernel/Sources/HError.cxx b/Kernel/Sources/HError.cxx index d38f2e07..39915f65 100644 --- a/Kernel/Sources/HError.cxx +++ b/Kernel/Sources/HError.cxx @@ -5,15 +5,28 @@ ------------------------------------------- */ #include <KernelKit/HError.hpp> +#include <NewKit/KernelCheck.hpp> namespace NewOS { - /// @brief Doea a system wide bug check. + STATIC Bool cRaise = false; + + /// @brief Does a system wide bug check. /// @param void no params. /// @return if error-free: true, otherwise false. Boolean err_bug_check(void) noexcept { - /// TODO: + if (cRaise) + { + ke_stop(RUNTIME_CHECK_BAD_BEHAVIOR); + } + return false; } + + Void err_bug_check_raise(void) noexcept + { + if (!cRaise) + cRaise = true; + } } // namespace NewOS |
