mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-09 07:45:08 +00:00
Make AstNode::input_error use C++ stringf machinery
This commit is contained in:
parent
ff5177ce8e
commit
ad4ef8b775
2 changed files with 8 additions and 5 deletions
|
|
@ -1922,11 +1922,9 @@ void AstModule::loadconfig() const
|
|||
flag_autowire = autowire;
|
||||
}
|
||||
|
||||
void AstNode::input_error(const char *format, ...) const
|
||||
void AstNode::formatted_input_error(std::string str) const
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
logv_file_error(*location.begin.filename, location.begin.line, format, ap);
|
||||
log_formatted_file_error(*location.begin.filename, location.begin.line, std::move(str));
|
||||
}
|
||||
|
||||
YOSYS_NAMESPACE_END
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue