diff options
| author | Daniel Nagy <[email protected]> | 2022-05-06 20:15:13 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-06 20:15:13 +0200 |
| commit | 19f88241ec43e64c256c625e703de83d68e4a91a (patch) | |
| tree | 5241785923db7cd0fbcd0abadec4bf76238da500 /src/utils.c | |
| parent | 7fc96624801c2cd86b39fc57f6740676a3a798eb (diff) | |
| download | raylib-19f88241ec43e64c256c625e703de83d68e4a91a.tar.gz raylib-19f88241ec43e64c256c625e703de83d68e4a91a.zip | |
Flush stdout after trace messages (#2465)
This immediately shows log messages when stdout is not connected to a
tty.
Diffstat (limited to 'src/utils.c')
| -rw-r--r-- | src/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c index ac5828be..5a438bee 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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); |
