mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
27 lines
517 B
C++
27 lines
517 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 &symbolName);
|
|
}
|