summaryrefslogtreecommitdiffhomepage
path: root/Private/Source/RuntimeCheck.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Private/Source/RuntimeCheck.cxx')
-rw-r--r--Private/Source/RuntimeCheck.cxx9
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";