mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-31 05:15:55 -05:00
27 lines
518 B
C++
27 lines
518 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace hex::trace {
|
|
|
|
struct StackFrame {
|
|
std::string file;
|
|
std::string function;
|
|
std::uint32_t line;
|
|
};
|
|
|
|
using StackTrace = std::vector<StackFrame>;
|
|
|
|
void initialize();
|
|
|
|
struct StackTraceResult {
|
|
std::vector<StackFrame> stackFrames;
|
|
std::string implementationName;
|
|
};
|
|
|
|
StackTraceResult getStackTrace();
|
|
[[nodiscard]] std::string demangle(const std::string &mangledName);
|
|
|
|
} |