示例#1
0
    void unreachable(const LineInfo& line_info)
    {
        System::println(System::Color::error, "Error: Unreachable code was reached");
        System::println(System::Color::error, line_info.to_string()); // Always print line_info here
#ifndef NDEBUG
        std::abort();
#else
        cleanup_and_exit(EXIT_FAILURE);
#endif
    }
示例#2
0
 void exit_with_code(const LineInfo& line_info, const int exit_code)
 {
     Debug::println(System::Color::error, line_info.to_string());
     cleanup_and_exit(exit_code);
 }