堆栈帧类
更多...
#include <stacktrace.hpp>
堆栈帧类
表示堆栈中的一个函数调用帧,包含返回地址和符号信息。
在文件 stacktrace.hpp 第 37 行定义.
◆ frame()
| neforce::stacktrace::frame::frame |
( |
void * | addr | ) |
|
|
inlineexplicitnoexcept |
◆ address()
| void * neforce::stacktrace::frame::address |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ name()
| string neforce::stacktrace::frame::name |
( |
| ) |
const |
|
nodiscard |
获取函数符号名称
- 返回
- 解析后的函数名称
解析还原符号名称。
◆ operator!=()
| bool neforce::stacktrace::frame::operator!= |
( |
const frame & | other | ) |
const |
|
inlinenodiscardnoexcept |
◆ operator==()
| bool neforce::stacktrace::frame::operator== |
( |
const frame & | other | ) |
const |
|
inlinenodiscardnoexcept |
◆ source_file()
| string neforce::stacktrace::frame::source_file |
( |
| ) |
const |
|
nodiscard |
获取源文件路径
- 返回
- 源文件路径,不可用时返回空字符串
◆ source_line()
| size_t neforce::stacktrace::frame::source_line |
( |
| ) |
const |
|
nodiscard |
◆ to_string()
| string neforce::stacktrace::frame::to_string |
( |
| ) |
const |
|
nodiscard |
转换为字符串
- 返回
- 格式化的堆栈帧信息
格式:地址 [in 函数名]
该类的文档由以下文件生成: