mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 17:45:11 +02:00
20 lines
623 B
C++
20 lines
623 B
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
// On Windows, context is a CONTEXT object.
|
|
// On Apple, context is a x86_thread_state64_t.
|
|
// On Unix/Linux, context is a mcontext_t.
|
|
// On OpenBSD, context is a ucontext_t.
|
|
// Ugh, might need to abstract this better.
|
|
typedef bool (*BadAccessHandler)(uintptr_t address, void *context);
|
|
|
|
void InstallExceptionHandler(BadAccessHandler accessHandler);
|
|
|
|
// Implementation note: This must be a no-op if InstallExceptionHandler hasn't been called.
|
|
void UninstallExceptionHandler();
|