add overload to utils::print() so it can be used without FILE pointer

This commit is contained in:
Axel Kohlmeyer
2025-06-06 11:29:12 -04:00
parent bf97cc470f
commit 23b185a625
2 changed files with 26 additions and 1 deletions

View File

@ -274,6 +274,11 @@ void utils::print(FILE *fp, const std::string &mesg)
fputs(mesg.c_str(), fp);
}
void utils::print(const std::string &mesg)
{
fputs(mesg.c_str(), stdout);
}
void utils::fmtargs_print(FILE *fp, fmt::string_view format, fmt::format_args args)
{
print(fp, fmt::vformat(format, args));