switch to coroutine execution model

This commit is contained in:
Martin Michelsen
2025-04-30 21:43:06 -07:00
parent f65b1f1c14
commit cc99050964
160 changed files with 269127 additions and 227736 deletions
+3 -3
View File
@@ -563,7 +563,7 @@ struct pstring {
throw std::logic_error("unknown text encoding");
}
} catch (const std::runtime_error& e) {
phosg::log_warning("Unencodable text: %s", e.what());
phosg::log_warning_f("Unencodable text: {}", e.what());
if (BytesPerChar == 2) {
if (Bytes >= 6) {
this->data[0] = '<';
@@ -638,7 +638,7 @@ struct pstring {
throw std::logic_error("unknown text encoding");
}
} catch (const std::runtime_error& e) {
phosg::log_warning("Undecodable text: %s", e.what());
phosg::log_warning_f("Undecodable text: {}", e.what());
return "<?>";
}
}
@@ -718,7 +718,7 @@ struct pstring {
}
// Note: The contents of a pstring do not have to be null-terminated, so there
// is no .c_str() function.
// is no function.
} __attribute__((packed));
// Helper functions