Return Type | Function name | Arguments |
---|---|---|
void | hzProcess::StackTrace | (void) |
Declared in file: hzProcess.h
Defined in file : hzProcess.cpp
Function Logic:
Function body:
void hzProcess::StackTrace (void) { hzLogger* plog ; int32_t n ; 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") ; } }