|
SafetyHook
|
Error type for MidHook. More...
#include <mid_hook.hpp>
Public Types | |
| enum | : uint8_t { BAD_ALLOCATION , BAD_INLINE_HOOK } |
| The type of error. | |
Static Public Member Functions | |
| static Error | bad_allocation (Allocator::Error err) |
| Create a BAD_ALLOCATION error. | |
| static Error | bad_inline_hook (InlineHook::Error err) |
| Create a BAD_INLINE_HOOK error. | |
Public Attributes | ||
| enum safetyhook::MidHook::Error:: { ... } | type | |
| The type of error. | ||
| union { | ||
| Allocator::Error allocator_error | ||
| Allocator error information. | ||
| InlineHook::Error inline_hook_error | ||
| InlineHook error information. | ||
| }; | ||
| Extra error information. | ||
|
inlinestaticnodiscard |
Create a BAD_ALLOCATION error.
| err | The Allocator::Error that failed. |
|
inlinestaticnodiscard |
Create a BAD_INLINE_HOOK error.
| err | The InlineHook::Error that failed. |