Flush stdout after trace messages (#2465)

This immediately shows log messages when stdout is not connected to a
tty.
This commit is contained in:
Daniel Nagy 2022-05-06 20:15:13 +02:00 committed by GitHub
parent 7fc9662480
commit 19f88241ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,6 +148,7 @@ void TraceLog(int logType, const char *text, ...)
strcat(buffer, text);
strcat(buffer, "\n");
vprintf(buffer, args);
fflush(stdout);
#endif
va_end(args);