|
|
|
@ -425,7 +425,8 @@ inline void CCallStackSingleton::setTopStackEntry(ICallStackEntry* newEntry)
|
|
|
|
|
inline void CCallStackSingleton::display(NLMISC::CLog *log)
|
|
|
|
|
{
|
|
|
|
|
nlassert(log!=NULL);
|
|
|
|
|
getTopStackEntry()->displayStack(*log);
|
|
|
|
|
ICallStackEntry *entry = getTopStackEntry();
|
|
|
|
|
if (entry) entry->displayStack(*log);
|
|
|
|
|
log->displayNL("");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -468,15 +469,13 @@ inline ICallStackEntry::~ICallStackEntry()
|
|
|
|
|
inline void ICallStackEntry::displayStack(NLMISC::CLog& log) const
|
|
|
|
|
{
|
|
|
|
|
// stop recursing when we reach a NULL object
|
|
|
|
|
// (this is implemented in this way in order to ximplify call code)
|
|
|
|
|
if (this==NULL)
|
|
|
|
|
return;
|
|
|
|
|
// (this is implemented in this way in order to simplify call code)
|
|
|
|
|
|
|
|
|
|
// display this entry
|
|
|
|
|
displayEntry(log);
|
|
|
|
|
|
|
|
|
|
// recurse through call stack
|
|
|
|
|
_Next->displayStack(log);
|
|
|
|
|
if (_Next) _Next->displayStack(log);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|