mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-20 00:14:50 +00:00
Move log_assert_worker()'s call to log_error() into an out-of-line non-varags function
This commit is contained in:
parent
aa3eb6f62a
commit
419eeb2a8f
2 changed files with 8 additions and 1 deletions
|
@ -410,6 +410,11 @@ void log_error(const char *format, ...)
|
|||
logv_error(format, ap);
|
||||
}
|
||||
|
||||
void log_assert_failure(const char *expr, const char *file, int line)
|
||||
{
|
||||
log_error("Assert `%s' failed in %s:%d.\n", expr, file, line);
|
||||
}
|
||||
|
||||
void log_cmd_error(const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue