Files
ARMSX2/common/CrashHandler.h
T

21 lines
457 B
C++
Raw Normal View History

// SPDX-FileCopyrightText: 2002-2026 PCSX2 Dev Team
2024-07-30 13:42:36 +02:00
// SPDX-License-Identifier: GPL-3.0+
2022-04-19 00:58:13 +10:00
#include <string_view>
2024-05-29 20:30:53 +10:00
#ifndef _WIN32
#include <csignal>
#endif
2022-04-19 00:58:13 +10:00
namespace CrashHandler
{
bool Install();
void SetWriteDirectory(std::string_view dump_directory);
void WriteDumpForCaller();
2024-05-29 20:30:53 +10:00
#ifndef _WIN32
// Allow crash handler to be invoked from a signal.
void CrashSignalHandler(int signal, siginfo_t* siginfo, void* ctx);
#endif
2022-04-19 00:58:13 +10:00
} // namespace CrashHandler