mirror of
https://github.com/Dasharo/subhook.git
synced 2026-03-06 15:04:20 -08:00
Improve ABS() macro
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
#define ABS(x) ((x) > 0 ? (x) : (-(x)))
|
||||
#define ABS(x) ((x) >= 0 ? (x) : -(x))
|
||||
#define MAX_INSN_LEN 15 /* maximum length of x86 instruction */
|
||||
|
||||
#define JMP_OPCODE 0xE9
|
||||
|
||||
Reference in New Issue
Block a user