mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-06 11:20:27 +00:00
Fix logger
This commit is contained in:
parent
33653c8a80
commit
2e89aa572b
1 changed files with 2 additions and 0 deletions
|
@ -223,6 +223,8 @@ static inline void log_assert_worker(bool cond, const char *expr, const char *fi
|
||||||
if (!cond) {
|
if (!cond) {
|
||||||
log("ERROR: Assert `%s' failed in %s:%d.\n", expr, file, line);
|
log("ERROR: Assert `%s' failed in %s:%d.\n", expr, file, line);
|
||||||
log_flush();
|
log_flush();
|
||||||
|
printf("ERROR: Assert `%s' failed in %s:%d.\n", expr, file, line);
|
||||||
|
raise(SIGABRT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue