mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-01 13:39:30 +00:00
log: Print static message as fatal error for YOSYS_ABORT
This commit is contained in:
parent
86a46b9e5c
commit
2dce50516b
2 changed files with 11 additions and 1 deletions
|
@ -407,6 +407,11 @@ void log_abort_internal(const char *file, int line)
|
|||
log_error("Abort in %s:%d.\n", file, line);
|
||||
}
|
||||
|
||||
void log_yosys_abort_message(std::string_view file, int line, std::string_view func, std::string_view message)
|
||||
{
|
||||
log_error("Abort in %s:%d (%s): %s\n", file, line, func, message);
|
||||
}
|
||||
|
||||
void log_formatted_cmd_error(std::string str)
|
||||
{
|
||||
if (log_cmd_error_throw) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue