| 291 | |
| 292 | namespace safetyhook { |
| 293 | InlineHook create_inline(void* target, void* destination, InlineHook::Flags flags) { |
| 294 | if (auto hook = InlineHook::create(target, destination, flags)) { |
| 295 | return std::move(*hook); |
| 296 | } else { |
| 297 | return {}; |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | MidHook create_mid(void* target, MidHookFn destination, MidHook::Flags flags) { |
| 302 | if (auto hook = MidHook::create(target, destination, flags)) { |