[Scummvm-cvs-logs] SF.net SVN: scummvm:[49013] scummvm/trunk/backends/platform/psp/trace.h

Bluddy at users.sourceforge.net Bluddy at users.sourceforge.net
Wed May 12 16:11:28 CEST 2010


Revision: 49013
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49013&view=rev
Author:   Bluddy
Date:     2010-05-12 14:11:28 +0000 (Wed, 12 May 2010)

Log Message:
-----------
PSP: fixed debug function. Compiler optimization was calling the destructor before the end of the function, causing incorrect stack output.

Modified Paths:
--------------
    scummvm/trunk/backends/platform/psp/trace.h

Modified: scummvm/trunk/backends/platform/psp/trace.h
===================================================================
--- scummvm/trunk/backends/platform/psp/trace.h	2010-05-12 11:55:39 UTC (rev 49012)
+++ scummvm/trunk/backends/platform/psp/trace.h	2010-05-12 14:11:28 UTC (rev 49013)
@@ -120,7 +120,7 @@
 };
 
 /* We don't need anything but this line at the beginning of each function to debug function calls */
-	#define DEBUG_ENTER_FUNC()					PSPStackDebugFuncs(__PRETTY_FUNCTION__)
+	#define DEBUG_ENTER_FUNC()		volatile PSPStackDebugFuncs __foo(__PRETTY_FUNCTION__)
 #else /* Don't debug function calls */
 	#define DEBUG_ENTER_FUNC()
 #endif /* __PSP_DEBUG_FUNCS__ */


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