Merge branch 'hook-refactor' of https://github.com/lunixbochs/unicorn into lunixbochs-hook-refactor

This commit is contained in:
Nguyen Anh Quynh
2016-01-23 13:24:12 +08:00
3 changed files with 4 additions and 6 deletions

View File

@ -110,7 +110,7 @@ enum uc_hook_idx {
// if statement to check hook bounds
#define HOOK_BOUND_CHECK(hh, addr) \
((((addr) >= (hh)->begin && (addr) < (hh)->end) \
((((addr) >= (hh)->begin && (addr) <= (hh)->end) \
|| (hh)->begin > (hh)->end))
#define HOOK_EXISTS(uc, idx) ((uc)->hook[idx##_IDX].head != NULL)