48a57cd981
* feat: Added simple stack trace output * feat: Added backtrace wrapper * build: Added libbacktrace include dirs to build * build: Fixed libbacktrace variables * build: More backtrace variable fixes * build: Try to find backtrace include * build: Get backtrace header from cmake script * feat: Added backtrace support for execinfo * feat: Added support for StackWalk on Windows
20 lines
278 B
C++
20 lines
278 B
C++
#pragma once
|
|
|
|
#include <hex.hpp>
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace hex::stacktrace {
|
|
|
|
struct StackFrame {
|
|
std::string file;
|
|
std::string function;
|
|
u32 line;
|
|
};
|
|
|
|
void initialize();
|
|
|
|
std::vector<StackFrame> getStackTrace();
|
|
|
|
} |