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

svn-id: r49013
This commit is contained in:
Yotam Barnoy 2010-05-12 14:11:28 +00:00
parent 9d3c8d4910
commit dd8aa85eb5

View File

@ -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__ */