#ifndef FATAL_ERROR_H #define FATAL_ERROR_H #include #include #include template [[noreturn]] void fatal_error(std::format_string fmt, Args&&... args) { std::string msg = std::format(fmt, std::forward(args)...); std::fputs(msg.c_str(), stderr); std::fputc('\n', stderr); std::abort(); } #endif