implement detour_transaction_begin

This commit is contained in:
Lysann Tranvouez 2025-09-28 00:37:03 +02:00
parent c0975230fe
commit d80ec89490
8 changed files with 231 additions and 6 deletions

18
detours_internal.h Normal file
View file

@ -0,0 +1,18 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Lysann Tranvouez. All rights reserved.
#pragma once
#ifndef MACH_DETOURS_INTERNAL_H
#define MACH_DETOURS_INTERNAL_H
#ifndef DETOUR_TRACE
#if DETOUR_DEBUG
#define DETOUR_TRACE(x) printf x
#define DETOUR_BREAK() raise(SIGTRAP)
#else
#define DETOUR_TRACE(x)
#define DETOUR_BREAK()
#endif
#endif
#endif //MACH_DETOURS_INTERNAL_H