utils: rework Mu::Error and g_ logging macros with fmt

A bit more C++ template magic to remove a lot of code.
This commit is contained in:
Dirk-Jan C. Binnema
2023-07-03 20:41:06 +03:00
parent e6ab61d233
commit 742ca33740
11 changed files with 128 additions and 163 deletions

View File

@ -51,15 +51,15 @@ test_regex_replace()
int
main(int argc, char* argv[])
try {
mu_test_init(&argc, &argv);
mu_test_init(&argc, &argv);
g_test_add_func("/regex/match", test_regex_match);
g_test_add_func("/regex/replace", test_regex_replace);
return g_test_run();
g_test_add_func("/regex/match", test_regex_match);
g_test_add_func("/regex/replace", test_regex_replace);
return g_test_run();
} catch (const std::runtime_error& re) {
std::cerr << re.what() << "\n";
return 1;
mu_printerrln("{}", re.what());
return 1;
}
#endif /*BUILD_TESTS*/