Browse Source

Flush stdout before output errors to give a better idea of at which point the error occurred

mingodad 3 years ago
parent
commit
0d1c96d67f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      SquiLu/sq/sq.c

+ 1 - 0
SquiLu/sq/sq.c

@@ -58,6 +58,7 @@ static void errorfunc(HSQUIRRELVM v,const SQChar *s,...)
 {
 {
 	va_list vl;
 	va_list vl;
 	va_start(vl, s);
 	va_start(vl, s);
+	fflush(stdout);
 	scvprintf(stderr, s, vl);
 	scvprintf(stderr, s, vl);
 	va_end(vl);
 	va_end(vl);
 	(void)v; /* UNUSED */
 	(void)v; /* UNUSED */