mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
Make verbose_log() print on stdout when _DEBUG is enabled
This commit is contained in:
parent
76e7d15484
commit
05b70d2538
@ -63,8 +63,16 @@ void verbose_log(const char* format, ...)
|
|||||||
if (app::log_fileptr) {
|
if (app::log_fileptr) {
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, format);
|
va_start(ap, format);
|
||||||
|
|
||||||
vfprintf(app::log_fileptr, format, ap);
|
vfprintf(app::log_fileptr, format, ap);
|
||||||
fflush(app::log_fileptr);
|
fflush(app::log_fileptr);
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
|
vfprintf(stdout, format, ap);
|
||||||
|
fflush(stdout);
|
||||||
|
#endif
|
||||||
|
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user