Skip to content

Commit 08aeedb

Browse files
authored
Merge pull request #2610 from verilog-to-routing/feature-flush-in-assertion
Enable VTR to flush stdout and stderr before assertion
2 parents 2bf5d27 + 2e88ae4 commit 08aeedb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/libvtrutil/src/vtr_assert.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ void handle_assert(const char* expr, const char* file, unsigned int line, const
1616
fprintf(stderr, " (%s)", msg);
1717
}
1818
fprintf(stderr, ".\n");
19+
fflush(stdout);
20+
fflush(stderr);
1921
std::abort();
2022
}
2123

0 commit comments

Comments
 (0)