2023-01-17 21:38:56 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <hex.hpp>
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace hex::stacktrace {
|
|
|
|
|
|
|
|
struct StackFrame {
|
|
|
|
std::string file;
|
|
|
|
std::string function;
|
|
|
|
u32 line;
|
|
|
|
};
|
|
|
|
|
|
|
|
void initialize();
|
|
|
|
|
2024-06-22 21:33:52 +02:00
|
|
|
struct StackTraceResult {
|
|
|
|
std::vector<StackFrame> stackFrames;
|
|
|
|
std::string implementationName;
|
|
|
|
};
|
|
|
|
|
|
|
|
StackTraceResult getStackTrace();
|
2023-01-17 21:38:56 +01:00
|
|
|
|
|
|
|
}
|