Zen API

- Home
- Topics
- Types
- Files

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
15 kBeginHeader()
16
17
23 //typedef kObject kBackTrace; --forward-declared in kApiDef.x.h
24
25
36 kFx(kStatus) kBackTrace_Construct(kBackTrace* trace, kAlloc allocator);
37
50 kFx(kStatus) kBackTrace_Capture(kBackTrace trace, kSize skip);
51
59 kFx(kSize) kBackTrace_Depth(kBackTrace trace);
60
70 kFx(kStatus) kBackTrace_Describe(kBackTrace trace, kArrayList* lines, kAlloc allocator);
71
72 kEndHeader()
73
74 #include <kApi/Utils/kBackTrace.x.h>
75
76 #endif
kBackTrace::kBackTrace_Describe
kStatus kBackTrace_Describe(kBackTrace trace, kArrayList *lines, kAlloc allocator)
Creates a list of descriptive strings, one for each line in the trace.
kBackTrace::kBackTrace_Depth
kSize kBackTrace_Depth(kBackTrace trace)
Count of function calls in the captured trace.
kBackTrace::kBackTrace_Capture
kStatus kBackTrace_Capture(kBackTrace trace, kSize skip)
Captures back trace information.
kBackTrace::kBackTrace_Construct
kStatus kBackTrace_Construct(kBackTrace *trace, kAlloc allocator)
Constructs a kBackTrace object.
kSize
Represents an unsigned integer that can store a pointer address.
kAlloc
Abstract base class for memory allocator types.
kApiDef.h
Core Zen type declarations.
kBackTrace
Represents a snapshot of the active functions on a call stack.
kArrayList
Represents a list implemented with a dynamic array.
kStatus
Represents an error code.