Add one more compatibility logger used in patches for some time

This commit is contained in:
Miodrag Milanovic 2026-06-12 14:44:26 +02:00
parent 8eb3133076
commit ec6266a328
1 changed files with 9 additions and 0 deletions

View File

@ -83,4 +83,13 @@ void log(const char *format, ...)
log_formatted(formatted);
}
void log_compat(const char *format, ...)
{
va_list ap;
va_start(ap, format);
std::string formatted = vstringf(format, ap);
va_end(ap);
log_formatted(formatted);
}
YOSYS_NAMESPACE_END