3
0
Fork 0
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:
Robert O'Callahan 2025-08-23 18:21:33 +12:00 committed by Jannis Harder
parent aa3eb6f62a
commit 419eeb2a8f
2 changed files with 8 additions and 1 deletions

View file

@ -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;