trying to simplify branches
This commit is contained in:
Vendored
+6
@@ -4,7 +4,13 @@
|
||||
namespace ircolib {
|
||||
template <typename... Args>
|
||||
void panic(std::format_string<Args...> fmt, Args &&...args) {
|
||||
std::print("[FATAL] ");
|
||||
std::println(fmt, std::forward<Args>(args)...);
|
||||
exit(1);
|
||||
}
|
||||
template <typename... Args>
|
||||
void warn(std::format_string<Args...> fmt, Args &&...args) {
|
||||
std::print("[WARN] ");
|
||||
std::println(fmt, std::forward<Args>(args)...);
|
||||
}
|
||||
} // namespace ircolib
|
||||
|
||||
Reference in New Issue
Block a user