diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-03 14:52:52 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-03 14:52:52 +0100 |
| commit | fcccf780db4cdc23858c108c6cde1d08360ee88f (patch) | |
| tree | 6e9d871860fe4a6f415b95f7d77d2ac5bf9275a2 /Private/Source/RuntimeCheck.cxx | |
| parent | 1f0cdb9f4ad64623ae8434a81fcbe8d37a5c8164 (diff) | |
Kernel: Got stuck at the way I do things, trying another approach see
hcore ticket HCR-11 in Jira.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/Source/RuntimeCheck.cxx')
| -rw-r--r-- | Private/Source/RuntimeCheck.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Private/Source/RuntimeCheck.cxx b/Private/Source/RuntimeCheck.cxx index a84a0b7a..664e3d75 100644 --- a/Private/Source/RuntimeCheck.cxx +++ b/Private/Source/RuntimeCheck.cxx @@ -12,7 +12,7 @@ #include <NewKit/RuntimeCheck.hpp> #include <NewKit/String.hpp> -extern "C" [[noreturn]] void wait_for_debugger() { +extern "C" [[noreturn]] void ke_wait_for_debugger() { while (true) { HCore::HAL::rt_cli(); HCore::HAL::rt_halt(); @@ -63,10 +63,13 @@ void ke_stop(const HCore::Int &id) { }; DumpManager::Dump(); - wait_for_debugger(); + +#ifdef __DEBUG__ + ke_wait_for_debugger(); +#endif // ifdef __DEBUG__ } -void runtime_check(bool expr, const char *file, const char *line) { +void ke_runtime_check(bool expr, const char *file, const char *line) { if (!expr) { #ifdef __DEBUG__ kcout << "[KERNEL] Check Failed!\n"; |
