15 lines
262 B
C++
15 lines
262 B
C++
#pragma once
|
|
#include <stdint.h>
|
|
|
|
struct StackTracer
|
|
{
|
|
StackTracer();
|
|
StackTracer(uintptr_t base_pointer);
|
|
void trace();
|
|
void trace_with_ip(uintptr_t ip);
|
|
|
|
private:
|
|
uintptr_t m_base_pointer;
|
|
};
|
|
|
|
bool stack_trace_contains(uintptr_t address); |