1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include "kapi/system.hpp" #include "kapi/io.hpp" namespace teachos::system { auto panic(std::string_view message, std::source_location location) -> void { io::println_error("!!!Kernel Panic!!! "); io::println_error(message); io::println_error(location.file_name()); io::println_error(location.function_name()); halt(); } } // namespace teachos::system