impr: Cleanup main

This commit is contained in:
WerWolv
2023-07-22 21:30:22 +02:00
parent 4b0d980d54
commit f5fda76414
3 changed files with 98 additions and 54 deletions

View File

@@ -18,10 +18,8 @@ namespace hex {
template<typename... Args>
inline void println(std::string_view format, Args... args) {
if constexpr (requires { fmt::println(fmt::runtime(format), args...); })
fmt::println(fmt::runtime(format), args...);
else
fmt::print(fmt::runtime(format), args...);
fmt::print(fmt::runtime(format), args...);
fmt::print("\n");
}
}