mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-07 20:08:14 +00:00
Flush stdout after trace messages (#2465)
This immediately shows log messages when stdout is not connected to a tty.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user