mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-13 13:11:27 +00:00
Make log_experimental() just take an std::string, since it doesn't need to be varargs.
This commit is contained in:
parent
4f8beee55f
commit
8e29a8d8a0
3 changed files with 7 additions and 13 deletions
|
@ -413,16 +413,11 @@ void log_file_error(const string &filename, int lineno,
|
|||
logv_file_error(filename, lineno, format, ap);
|
||||
}
|
||||
|
||||
void log_experimental(const char *format, ...)
|
||||
void log_experimental(const std::string &str)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
string s = vstringf(format, ap);
|
||||
va_end(ap);
|
||||
|
||||
if (log_experimentals_ignored.count(s) == 0 && log_experimentals.count(s) == 0) {
|
||||
log_warning("Feature '%s' is experimental.\n", s.c_str());
|
||||
log_experimentals.insert(s);
|
||||
if (log_experimentals_ignored.count(str) == 0 && log_experimentals.count(str) == 0) {
|
||||
log_warning("Feature '%s' is experimental.\n", str);
|
||||
log_experimentals.insert(str);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue