| 62 | // Used for detailed stuff that we don't usually want to see. |
| 63 | |
| 64 | void logprintf(const char* format, ...) // args like printf |
| 65 | { |
| 66 | if (logfile_g) |
| 67 | { |
| 68 | char s[SBIG]; |
| 69 | va_list args; |
| 70 | va_start(args, format); |
| 71 | VSPRINTF(s, format, args); |
| 72 | va_end(args); |
| 73 | // we don't check fputs here, to prevent recursive calls and msgs |
| 74 | fputs(s, logfile_g); |
| 75 | fflush(logfile_g); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | // Like lprintf but always prints even if print_g is false. |
| 80 |
no outgoing calls
no test coverage detected