correct my sins
This commit is contained in:
parent
5c96fb7787
commit
3eba6f4ec5
|
@ -29,7 +29,7 @@ dllname->name = GetProcAddress(dllname->handle, #name);
|
||||||
#define RESTORE_STACK "add rsp, 0x28 \n pop rsp \n"
|
#define RESTORE_STACK "add rsp, 0x28 \n pop rsp \n"
|
||||||
|
|
||||||
|
|
||||||
// These macros exist because "jmp [var]" or "jmp ds:[var]" any any other variants I have tried do not properly compile
|
// These macros exist because "jmp [var]" or "jmp ds:[var]" and any other variants I have tried do not properly compile
|
||||||
#define GETTER_VAR(vartype, varname)\
|
#define GETTER_VAR(vartype, varname)\
|
||||||
static __attribute__((used)) vartype varname;\
|
static __attribute__((used)) vartype varname;\
|
||||||
extern "C" vartype Get_##varname(){return varname;}
|
extern "C" vartype Get_##varname(){return varname;}
|
||||||
|
|
Loading…
Reference in New Issue