Exports stack trace 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::StackTrace(void)

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

Function Logic:

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

Function body:

void hzProcess::StackTrace (void)
{
   //  Category: Diagnostics
   //  
   //  Exports stack trace 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
   int32_t     n ;         //  Function stack iterator
   plog = m_pLog ? m_pLog : s_pDfltLog ;
   if (!plog)
   {
       if (m_nPeak >&eq; _hzGlobal_callStack_size)
       {
           printf("Stack was blown\n") ;
           fflush(stdout);
       }
       else
       {
           printf("Most Current Function at %d (peak %d) functions:-\n", m_nFuncs, m_nPeak) ;
           for (n = m_nFuncs - 1; n >&eq; 0; n--)
               printf("%d -> %s\n", n + 1,m_Stack[n]) ;
           printf("End of stack\n") ;
           fflush(stdout);
       }
       return ;
   }
   if (m_nPeak >&eq; _hzGlobal_callStack_size)
       plog->Out("Stack was blown\n") ;
   else
   {
       plog->Out("Most Current Function at %d (peak %d) functions:-\n", m_nFuncs, m_nPeak) ;
       for (n = m_nFuncs - 1; n >&eq; 0; n--)
           plog->Out("%d -> %s\n", n + 1,m_Stack[n]) ;
       plog->Out("End of stack\n") ;
   }
}