This commit is contained in:
2026-05-18 23:29:24 +02:00
parent cf68f4c385
commit ec06dab964
+16
View File
@@ -0,0 +1,16 @@
#pragma once
#include <print>
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