浏览代码
Flush stdout after trace messages (#2465)
This immediately shows log messages when stdout is not connected to a
tty.
pull/2467/head
Daniel Nagy
3 年前
committed by
GitHub
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有
1 个文件被更改,包括
1 次插入 和
0 次删除
-
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); |
|
|
|