implement detour_transaction_begin
This commit is contained in:
parent
c0975230fe
commit
d80ec89490
8 changed files with 231 additions and 6 deletions
18
detours_internal.h
Normal file
18
detours_internal.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue