mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-04 02:10:24 +00:00
Make log()
use the FmtString
infrastructure.
Now `log()` supports `std::string`. We have to fix a few places where the format parameter was not a compile time constant. This is mostly trivial.
This commit is contained in:
parent
422ec05322
commit
2e28feed94
9 changed files with 67 additions and 38 deletions
|
@ -423,6 +423,7 @@ public:
|
|||
{
|
||||
return format_emit_toplevel(fmt, has_escapes, specs, args...);
|
||||
}
|
||||
std::string_view format_string() const { return fmt; }
|
||||
private:
|
||||
std::string_view fmt;
|
||||
bool has_escapes = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue