[aseprite] 200/250: Make verbose_log() print on stdout when _DEBUG is enabled

Tobias Hansen thansen at moszumanska.debian.org
Sun Dec 20 15:27:30 UTC 2015


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 05b70d25389fe6202f20508d349da8a1c097ed75
Author: David Capello <davidcapello at gmail.com>
Date:   Tue Oct 20 10:46:15 2015 -0300

    Make verbose_log() print on stdout when _DEBUG is enabled
---
 src/app/log.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/app/log.cpp b/src/app/log.cpp
index ddd6d12..7cbda2e 100644
--- a/src/app/log.cpp
+++ b/src/app/log.cpp
@@ -63,8 +63,16 @@ void verbose_log(const char* format, ...)
   if (app::log_fileptr) {
     va_list ap;
     va_start(ap, format);
+
     vfprintf(app::log_fileptr, format, ap);
     fflush(app::log_fileptr);
+
+#ifdef _DEBUG
+    vfprintf(stdout, format, ap);
+    fflush(stdout);
+#endif
+
     va_end(ap);
   }
+
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list