aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorYotam Barnoy2010-05-12 14:11:28 +0000
committerYotam Barnoy2010-05-12 14:11:28 +0000
commitdd8aa85eb5f9fa5da23c8a9798d715c427d6a5bd (patch)
treed46e2f934df41bf9fd3f9c9eeb59e16c5400174c /backends/platform
parent9d3c8d49104aa2eba0865ef378c97955f262e907 (diff)
downloadscummvm-rg350-dd8aa85eb5f9fa5da23c8a9798d715c427d6a5bd.tar.gz
scummvm-rg350-dd8aa85eb5f9fa5da23c8a9798d715c427d6a5bd.tar.bz2
scummvm-rg350-dd8aa85eb5f9fa5da23c8a9798d715c427d6a5bd.zip
PSP: fixed debug function. Compiler optimization was calling the destructor before the end of the function, causing incorrect stack output.
svn-id: r49013
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/psp/trace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/psp/trace.h b/backends/platform/psp/trace.h
index 8c113bef81..5bb861e32d 100644
--- a/backends/platform/psp/trace.h
+++ b/backends/platform/psp/trace.h
@@ -120,7 +120,7 @@ public:
};
/* 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__ */