Lines Matching refs:module
107 #define IMPLEMENT_THUNK( module, resolve, rettype, calltype, func, params ) \ argument
109 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr = (FARPROC)func##_Thunk; \
113 asm(" jmp *(%0)"::"m"(module##_##func##_Ptr)); \
119 …ResolveThunk_##resolve( &module##_##func##_Ptr, #module ".dll", #func, (FARPROC)func##_##resolve, …
122 asm(" jmp *(%0)"::"m"(module##_##func##_Ptr)); \
131 #define IMPLEMENT_THUNK( module, resolve, rettype, calltype, func, params ) \ argument
132 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr; \
137 …ResolveThunk_##resolve( &module##_##func##_Ptr, #module ".dll", #func, (FARPROC)func##_##resolve, …
138 _asm jmp [module##_##func##_Ptr] \
142 _asm jmp [module##_##func##_Ptr] \
144 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr = (FARPROC)func##_Thunk; \
156 #define DEFINE_CUSTOM_THUNK( module, resolve, rettype, calltype, func, params ) \ argument
158 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr = (FARPROC)func##_Thunk; \
161 ResolveThunk_##resolve( &module##_##func##_Ptr, #module ".dll", #func ); \
164 asm(" jmp *(%0)"::"m"(module##_##func##_Ptr)); \
169 asm(" jmp *(%0)"::"m"(module##_##func##_Ptr)); \
172 #define DEFINE_CUSTOM_THUNK( module, resolve, rettype, calltype, func, params ) \ argument
173 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr; \
176 ResolveThunk_##resolve( &module##_##func##_Ptr, #module ".dll", #func ); \
177 _asm jmp [module##_##func##_Ptr] \
181 _asm jmp [module##_##func##_Ptr] \
183 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr = (FARPROC)func##_Thunk;
188 #define DEFINE_DEFAULT_THUNK( module, resolve, rettype, calltype, func, params ) \ argument
190 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr = (FARPROC)func##_Thunk; \
194 …ResolveThunk_##resolve( &module##_##func##_Ptr, #module ".dll", #func, NULL, (FARPROC)func##_##Fai…
197 asm(" jmp *(%0)"::"m"(module##_##func##_Ptr)); \
202 asm(" jmp *(%0)"::"m"(module##_##func##_Ptr)); \
210 #define DEFINE_DEFAULT_THUNK( module, resolve, rettype, calltype, func, params ) \ argument
211 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr; \
215 …ResolveThunk_##resolve( &module##_##func##_Ptr, #module ".dll", #func, NULL, (FARPROC)func##_##Fai…
216 _asm jmp [module##_##func##_Ptr] \
220 _asm jmp [module##_##func##_Ptr] \
222 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr = (FARPROC)func##_Thunk; \