Lines Matching refs:func

107 #define IMPLEMENT_THUNK( module, resolve, rettype, calltype, func, params ) \  argument
108 static void func##_Thunk(); \
109 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr = (FARPROC)func##_Thunk; \
110 EXTERN_C rettype calltype func params \
113 asm(" jmp *(%0)"::"m"(module##_##func##_Ptr)); \
115 EXTERN_C rettype calltype func##_##resolve params; \
116 static rettype calltype func##_##Failure params; \
117 static void func##_Thunk() \
119 …ResolveThunk_##resolve( &module##_##func##_Ptr, #module ".dll", #func, (FARPROC)func##_##resolve, …
122 asm(" jmp *(%0)"::"m"(module##_##func##_Ptr)); \
124 static rettype calltype func##_##Failure params \
129 EXTERN_C rettype calltype func##_##resolve params
131 #define IMPLEMENT_THUNK( module, resolve, rettype, calltype, func, params ) \ argument
132 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr; \
133 EXTERN_C rettype calltype func##_##resolve params; \
134 static rettype calltype func##_##Failure params; \
135 static _declspec ( naked ) void func##_Thunk() \
137 …ResolveThunk_##resolve( &module##_##func##_Ptr, #module ".dll", #func, (FARPROC)func##_##resolve, …
138 _asm jmp [module##_##func##_Ptr] \
140 EXTERN_C _declspec( naked ) rettype calltype func params \
142 _asm jmp [module##_##func##_Ptr] \
144 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr = (FARPROC)func##_Thunk; \
145 static rettype calltype func##_##Failure params \
150 EXTERN_C rettype calltype func##_##resolve params
156 #define DEFINE_CUSTOM_THUNK( module, resolve, rettype, calltype, func, params ) \ argument
157 static void func##_Thunk(); \
158 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr = (FARPROC)func##_Thunk; \
159 static void func##_Thunk() \
161 ResolveThunk_##resolve( &module##_##func##_Ptr, #module ".dll", #func ); \
164 asm(" jmp *(%0)"::"m"(module##_##func##_Ptr)); \
166 EXTERN_C rettype calltype func params \
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; \
174 static _declspec ( naked ) void func##_Thunk() \
176 ResolveThunk_##resolve( &module##_##func##_Ptr, #module ".dll", #func ); \
177 _asm jmp [module##_##func##_Ptr] \
179 EXTERN_C _declspec( naked ) rettype calltype func params \
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
189 static void func##_Thunk(); \
190 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr = (FARPROC)func##_Thunk; \
191 static rettype calltype func##_##Failure params; \
192 static _declspec ( naked ) void func##_Thunk() \
194 …ResolveThunk_##resolve( &module##_##func##_Ptr, #module ".dll", #func, NULL, (FARPROC)func##_##Fai…
197 asm(" jmp *(%0)"::"m"(module##_##func##_Ptr)); \
199 EXTERN_C _declspec( naked ) rettype calltype func params \
202 asm(" jmp *(%0)"::"m"(module##_##func##_Ptr)); \
204 static rettype calltype func##_##Failure params \
210 #define DEFINE_DEFAULT_THUNK( module, resolve, rettype, calltype, func, params ) \ argument
211 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr; \
212 static rettype calltype func##_##Failure params; \
213 static _declspec ( naked ) void func##_Thunk() \
215 …ResolveThunk_##resolve( &module##_##func##_Ptr, #module ".dll", #func, NULL, (FARPROC)func##_##Fai…
216 _asm jmp [module##_##func##_Ptr] \
218 EXTERN_C _declspec( naked ) rettype calltype func params \
220 _asm jmp [module##_##func##_Ptr] \
222 EXTERN_C _declspec( dllexport ) FARPROC module##_##func##_Ptr = (FARPROC)func##_Thunk; \
223 static rettype calltype func##_##Failure params \