Duckstation/src/common/page_fault_handler.h

18 lines
385 B
C
Raw Normal View History

#pragma once
#include "types.h"
namespace Common::PageFaultHandler {
enum class HandlerResult
{
ContinueExecution,
ExecuteNextHandler,
};
2020-10-18 04:43:55 +00:00
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