// Copyright 2008 Dolphin Emulator Project1// Licensed under GPLv2+2// Refer to the license.txt file included.34#pragma once56#include <cstdint>78// On Windows, context is a CONTEXT object.9// On Apple, context is a x86_thread_state64_t.10// On Unix/Linux, context is a mcontext_t.11// On OpenBSD, context is a ucontext_t.12// Ugh, might need to abstract this better.13typedef bool (*BadAccessHandler)(uintptr_t address, void *context);1415void InstallExceptionHandler(BadAccessHandler accessHandler);1617// Implementation note: This must be a no-op if InstallExceptionHandler hasn't been called.18void UninstallExceptionHandler();192021