mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-21 17:35:39 -04:00
Common/PageFaultHandler: Support for unwind exceptions
Needed for UWP.
This commit is contained in:
@ -8,10 +8,12 @@ enum class HandlerResult
|
||||
ExecuteNextHandler,
|
||||
};
|
||||
|
||||
using Callback = HandlerResult(*)(void* exception_pc, void* fault_address, bool is_write);
|
||||
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);
|
||||
u32 GetHandlerCodeSize();
|
||||
|
||||
bool InstallHandler(const void* owner, void* start_pc, u32 code_size, Callback callback);
|
||||
bool RemoveHandler(const void* owner);
|
||||
|
||||
} // namespace Common::PageFaultHandler
|
||||
|
Reference in New Issue
Block a user