mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
fflush stdout before failure in vfailure
This commit is contained in:
parent
97d881959e
commit
d23a0fcf61
1 changed files with 1 additions and 0 deletions
|
|
@ -127,6 +127,7 @@ void pop_extra_root (void ** p) {
|
||||||
/* end */
|
/* end */
|
||||||
|
|
||||||
static void vfailure (char *s, va_list args) {
|
static void vfailure (char *s, va_list args) {
|
||||||
|
fflush (stdout);
|
||||||
fprintf (stderr, "*** FAILURE: ");
|
fprintf (stderr, "*** FAILURE: ");
|
||||||
vfprintf (stderr, s, args); // vprintf (char *, va_list) <-> printf (char *, ...)
|
vfprintf (stderr, s, args); // vprintf (char *, va_list) <-> printf (char *, ...)
|
||||||
exit (255);
|
exit (255);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue