9 Commits

Author SHA1 Message Date
Zeex
85a2406774 Add flag to support allocation of trampolines within 32-bit offset range of target code on 64-bit Windows
Plus minor formatting fixes and more documentation for flags.

Fixes #9
2023-02-10 00:02:01 +06:00
Zeex
314603bc42 Fix address overflow in trampoline
Allocate memory for storing the trampoline code via mmap() with MAP_32BIT flag
to make sure that it stays withing 2GB range.

Also, add missing calls to subhook_free() in the C test program (C++ calls it
implicitly already via destructor).
2020-11-02 03:19:54 +06:00
Zeex
ced30fe38d Fix build error 2020-05-30 20:31:12 +06:00
Zeex
a38a683c31 Fix Xcode build 2020-05-30 18:22:05 +06:00
Zeex
ad78e30b6a Fix CMake 2.8.12 error and bump min CMake version 2018-09-08 00:49:09 +06:00
Zeex
b58b8370ba Fix compile errors and remove uses of nullptr 2018-09-08 00:05:38 +06:00
Zeex
3a61f8f270 Fix C++ test crash because of misaligned stack 2018-09-07 22:05:54 +06:00
Zeex
6cc020b2fd Rename "options" to "flags" 2018-09-06 23:59:35 +06:00
Zeex
221648a4f9 Rename test executable target to subhook_test and test -> tests 2018-09-06 15:46:22 +06:00