Skip to content

Commit

Permalink
Prevent defining _GUARD_CHECK_ICALL twice
Browse files Browse the repository at this point in the history
  • Loading branch information
ShortDevelopment committed Apr 15, 2024
1 parent c3ead3f commit 9005bbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions lib/Runtime/Base/ThreadContextInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
# else
extern "C" void __fastcall _guard_check_icall(_In_ uintptr_t _Target);
# endif

# ifndef _GUARD_CHECK_ICALL
# define _GUARD_CHECK_ICALL _guard_check_icall
# endif
#endif

ThreadContextInfo::ThreadContextInfo() :
Expand Down
4 changes: 0 additions & 4 deletions lib/Runtime/Base/ThreadContextInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,3 @@ uintptr_t ShiftAddr(const ThreadContextInfo*const context, T* address)
}

uintptr_t ShiftAddr(const ThreadContextInfo*const context, uintptr_t address);

#ifndef _GUARD_CHECK_ICALL
#define _GUARD_CHECK_ICALL _guard_check_icall
#endif

0 comments on commit 9005bbe

Please sign in to comment.