18 lines
408 B
C
18 lines
408 B
C
|
|
// 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
|