correct my sins

This commit is contained in:
ChrisMiuchiz 2019-10-27 13:56:08 -04:00
parent 5c96fb7787
commit 3eba6f4ec5
1 changed files with 1 additions and 1 deletions

View File

@ -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;}