-
首页
-
C4D R23.110 C++ SDK
StackTrace Class Reference
#include <stacktrace.h>
成员函数文档编制
◆
MAXON_INTERFACE_NONVIRTUAL()
◆
GetBacktrace()
static
Int
GetBacktrace
|
(
|
Int
|
skip
,
|
|
|
const
Block
< void * > &
|
functionPointers
|
|
)
|
|
|
|
static
|
Returns a back trace of the current thread's call stack. The array is terminated with a nullptr if not all entries are used.
-
参数
-
[in]
|
skip
|
The number of stack frames at the start of trace to be skipped.
|
[in,out]
|
functionPointers
|
Used to store the function pointers on the stack.
|
-
返回
-
The number of pointers returned.
◆
FindSymbol()
Searches the symbol belonging to the function pointer. If available the module name and offset in the function are returned as well.
-
参数
-
[in]
|
function
|
Function pointer from the call stack.
|
[in,out]
|
name
|
Used to return the function name.
|
[in,out]
|
module
|
Used to return the module name if available.
|
[out]
|
offset
|
Used to return the offset within the function if available.
|
-
返回
-
True if the function name could be determined (otherwise name contains the pointer as string).