core: use enums for panic

This commit is contained in:
Oleg Hahm
2015-09-04 16:14:35 +02:00
parent 9cb38cb681
commit e2639d7f83
6 changed files with 30 additions and 23 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ void *__dso_handle __attribute__((weak)) = NULL;
*/
extern "C" void __cxa_pure_virtual ()
{
core_panic(123, "PURE VIRTUAL CALL");
core_panic(PANIC_GENERAL_ERROR, "PURE VIRTUAL CALL");
}
/**
@@ -81,7 +81,7 @@ namespace __gnu_cxx {
*/
void __verbose_terminate_handler()
{
core_panic(123, "UNHANDLED C++ EXCEPTION");
core_panic(PANIC_GENERAL_ERROR, "UNHANDLED C++ EXCEPTION");
}
} /* namespace __gnu_cxx */