![]() |
Plasma Engine
2.0
|
Helper class to capture the current stack and print a captured stack. More...
#include <StackTracer.h>
Public Types | |
| using | PrintFunc = plDelegate<void(const char* szText)> |
| Callback-function to print a text somewhere. | |
Static Public Member Functions | |
| static plUInt32 | GetStackTrace (plArrayPtr< void * > &ref_trace, void *pContext=nullptr) |
| Captures the current stack trace. | |
| static void | ResolveStackTrace (const plArrayPtr< void * > &trace, PrintFunc printFunc) |
| Print a stack trace. | |
| static void | PrintStackTrace (const plArrayPtr< void * > &trace, PrintFunc printFunc) |
| Print a stack trace without resolving it. | |
Helper class to capture the current stack and print a captured stack.
|
static |
Captures the current stack trace.
The trace will contain not more than ref_trace.GetCount() entries. [Windows] If called in an exception handler, set pContext to PEXCEPTION_POINTERS::ContextRecord. Returns the actual number of captured entries.