[Scummvm-cvs-logs] SF.net SVN: scummvm: [26439] scummvm/trunk/common/util.cpp
knakos at users.sourceforge.net
knakos at users.sourceforge.net
Mon Apr 9 20:00:22 CEST 2007
Revision: 26439
http://scummvm.svn.sourceforge.net/scummvm/?rev=26439&view=rev
Author: knakos
Date: 2007-04-09 11:00:22 -0700 (Mon, 09 Apr 2007)
Log Message:
-----------
also copy debug output to the (redirected) log files
Modified Paths:
--------------
scummvm/trunk/common/util.cpp
Modified: scummvm/trunk/common/util.cpp
===================================================================
--- scummvm/trunk/common/util.cpp 2007-04-09 16:56:47 UTC (rev 26438)
+++ scummvm/trunk/common/util.cpp 2007-04-09 18:00:22 UTC (rev 26439)
@@ -512,7 +512,7 @@
// Print the error message to stderr
#ifdef __GP32__
printf("ERROR: %s\n", buf_output);
-#elif !defined(_WIN32_WCE)
+#else
fprintf(stderr, "%s!\n", buf_output);
#endif
@@ -539,15 +539,17 @@
TCHAR buf_output_unicode[1024];
MultiByteToWideChar(CP_ACP, 0, buf_output, strlen(buf_output) + 1, buf_output_unicode, sizeof(buf_output_unicode));
OutputDebugString(buf_output_unicode);
+#ifndef DEBUG
+ drawError(buf_output);
#else
+ int cmon_break_into_the_debugger_if_you_please = *(int *)(buf_output + 1); // bus error
+ printf("%d", cmon_break_into_the_debugger_if_you_please); // don't optimize the int out
+#endif
+#else
OutputDebugString(buf_output);
#endif
#endif
-#if defined ( _WIN32_WCE )
- drawError(buf_output);
-#endif
-
#ifdef PALMOS_MODE
PalmFatalError(buf_output);
#endif
@@ -573,7 +575,7 @@
#ifdef __GP32__ //ph0x FIXME: implement fprint?
printf("WARNING: %s\n", buf);
#else
-#if !defined (_WIN32_WCE) && !defined (__SYMBIAN32__)
+#if !defined (__SYMBIAN32__)
fprintf(stderr, "WARNING: %s!\n", buf);
#endif
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list