Files
ReSkate/Engine/Core/Debug/backtrace.h
T
2026-10-02 14:40:41 -05:00

13 lines
472 B
C++

#pragma once
#include <Windows.h>
#include <filesystem>
namespace dingosdk::backtrace {
enum class StartResult { disabled, ready, failed };
// Called outside DllMain. A missing endpoint or RESKATE_CRASH_REPORTING=0 disables reporting.
StartResult start(const std::filesystem::path& log_directory) noexcept;
void stop() noexcept;
// Last-chance path: only signals the prestarted helper and waits at most 15 seconds.
void capture(EXCEPTION_POINTERS* exception) noexcept;
}