Exports recent call history for this thread if there is an available logfile. The stack trace assumes all functions are using the _hzfunc() macro. Arguments: None Returns: None

Return TypeFunction nameArguments
voidhzProcess::CallHistory(void)

Declared in file: hzProcess.h
Defined in file : hzProcess.cpp

Function Logic:

0:START 1:items 2:unknown 3: No text 4:items 5:unknown 6:lev items 7:unknown 8:items 9:items 10:unknown 11:lev items 12:unknown 13:items 14:items 15:items 16: No text

Function body:

void hzProcess::CallHistory (void)
{
   //  Category: Diagnostics
   //  
   //  Exports recent call history for this thread if there is an available logfile. The stack trace assumes all functions are using the _hzfunc() macro.
   //  
   //  Arguments: None
   //  Returns: None
   hzLogger*   plog ;      //  Find applicable logger
   uint32_t    n ;         //  Function history iterator
   uint32_t    lev ;       //  Function level
   plog = m_pLog ? m_pLog : s_pDfltLog ;
   if (!plog)
       return ;
   //  Start with current position and work backwards to the begining. Then go to end of the history array and work backward to the current position
   plog->Out("Most Recent Function Calls:\n") ;
   for (n = m_nCallOset ; n ; n--)
   {
       lev = m_Hist[n].m_callLevel ;
       plog->Out("%10u %02u ", m_Hist[n].m_callNo, lev) ;
       for (; lev ; lev--)
           plog->Out(".") ;
       plog->Out(" %s\n", m_Hist[n].m_func) ;
   }
   for (n = _hzGlobal_callHist_size ; n > m_nCallOset ; n--)
   {
       lev = m_Hist[n].m_callLevel ;
       plog->Out("%10u %02u ", m_Hist[n].m_callNo, lev) ;
       for (; lev ; lev--)
           plog->Out(".") ;
       plog->Out(" %s\n", m_Hist[n].m_func) ;
   }
   plog->Out("End of History\n") ;
}