Squashed 'external/ircolib/' changes from cf68f4c..ec06dab
ec06dab logging git-subtree-dir: external/ircolib git-subtree-split: ec06dab96452fb0d3b4c93e71dbdf9869e39f7e5
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user