mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +00:00
18 lines
385 B
C++
18 lines
385 B
C++
#pragma once
|
|
#include "types.h"
|
|
|
|
namespace Common::PageFaultHandler {
|
|
enum class HandlerResult
|
|
{
|
|
ContinueExecution,
|
|
ExecuteNextHandler,
|
|
};
|
|
|
|
using Callback = HandlerResult(*)(void* exception_pc, void* fault_address, bool is_write);
|
|
using Handle = void*;
|
|
|
|
bool InstallHandler(void* owner, Callback callback);
|
|
bool RemoveHandler(void* owner);
|
|
|
|
} // namespace Common::PageFaultHandler
|