Skip to content

Commit 85f10ff

Browse files
committed
follow_jump() is only needed when INCLUDE_DETOURS.
1 parent 1be481e commit 85f10ff

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

clink/app/src/utils/hook_setter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ static bool use_verbose_hook_logging()
3131
}
3232

3333
//------------------------------------------------------------------------------
34+
#if INCLUDE_DETOURS
3435
static void* follow_jump(void* addr)
3536
{
3637
uint8* t = (uint8*)addr;
@@ -66,6 +67,7 @@ static void* follow_jump(void* addr)
6667
LOG("Following jump to %p", dest);
6768
return dest;
6869
}
70+
#endif
6971

7072
//------------------------------------------------------------------------------
7173
static void write_addr(hookptr_t* where, hookptr_t to_write)

0 commit comments

Comments
 (0)