Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kBackTrace.h
Go to the documentation of this file.
1 
10 #ifndef K_API_BACK_TRACE_H
11 #define K_API_BACK_TRACE_H
12 
13 #include <kApi/kApiDef.h>
14 #include <kApi/Utils/kBackTrace.x.h>
15 
22 //typedef kObject kBackTrace; --forward-declared in kApiDef.x.h
23 
35 kFx(kStatus) kBackTrace_Construct(kBackTrace* trace, kAlloc allocator);
36 
49 kFx(kStatus) kBackTrace_Capture(kBackTrace trace, kSize skip);
50 
58 kFx(kSize) kBackTrace_Depth(kBackTrace trace);
59 
69 kFx(kStatus) kBackTrace_Describe(kBackTrace trace, kArrayList* lines, kAlloc allocator);
70 
71 #endif
kStatus kBackTrace_Describe(kBackTrace trace, kArrayList *lines, kAlloc allocator)
Creates a list of descriptive strings, one for each line in the trace.
kSize kBackTrace_Depth(kBackTrace trace)
Count of function calls in the captured trace.
kStatus kBackTrace_Capture(kBackTrace trace, kSize skip)
Captures back trace information.
kStatus kBackTrace_Construct(kBackTrace *trace, kAlloc allocator)
Constructs a kBackTrace object.
Represents an unsigned integer that can store a pointer address.
Abstract base class for memory allocator types.
Core Zen type declarations.
Represents a snapshot of the active functions on a call stack.
Represents a list implemented with a dynamic array.
Represents an error code.