25 lines
431 B
C++
25 lines
431 B
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace fxn::detail
|
|
{
|
|
struct Stackframe
|
|
{
|
|
void* address;
|
|
std::string formatted;
|
|
};
|
|
|
|
class Stacktrace
|
|
{
|
|
private:
|
|
std::vector<Stackframe> m_Frames;
|
|
|
|
public:
|
|
Stacktrace();
|
|
|
|
public:
|
|
const std::vector<Stackframe>& GetFrames() const noexcept;
|
|
std::string ToString() const;
|
|
};
|
|
} |