[595] | 1 | /* $Id: odinwrap.h,v 1.10 1999-08-20 09:56:36 phaller Exp $ */
|
---|
[473] | 2 |
|
---|
| 3 | /*
|
---|
| 4 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 5 | *
|
---|
| 6 | * ODIN FS: Selector function wrapper macros
|
---|
| 7 | *
|
---|
| 8 | * Copyright 1999 Patrick Haller
|
---|
| 9 | *
|
---|
| 10 | */
|
---|
| 11 |
|
---|
| 12 |
|
---|
| 13 | #ifndef _ODINWRAP_H_
|
---|
| 14 | #define _ODINWARP_H_
|
---|
| 15 |
|
---|
| 16 |
|
---|
| 17 | /****************************************************************************
|
---|
| 18 | * Defines *
|
---|
| 19 | ****************************************************************************/
|
---|
| 20 |
|
---|
[537] | 21 |
|
---|
[533] | 22 | #define ODIN_INTERNAL _Optlink
|
---|
[473] | 23 |
|
---|
| 24 |
|
---|
[475] | 25 | #ifdef DEBUG
|
---|
| 26 | # define ODINDEBUGCHANNEL(a) static char* pszOdinDebugChannel=#a;
|
---|
| 27 | #else
|
---|
| 28 | # define ODINDEBUGCHANNEL(a)
|
---|
| 29 | #endif
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | #ifdef DEBUG
|
---|
| 33 |
|
---|
[473] | 34 | /****************************************************************************
|
---|
[475] | 35 | * General Wrapper Macros (debug instrumented) *
|
---|
| 36 | ****************************************************************************/
|
---|
| 37 |
|
---|
| 38 | /* ---------- 0 parameters ---------- */
|
---|
| 39 | #define ODINFUNCTION0(cRet,cName) \
|
---|
[484] | 40 | cRet ODIN_INTERNAL ODIN_##cName (void); \
|
---|
| 41 | cRet WINAPI cName(void) \
|
---|
[475] | 42 | { \
|
---|
| 43 | unsigned short sel = RestoreOS2FS(); \
|
---|
| 44 | dprintf(("%s: "#cRet" "#cName"() enter\n", \
|
---|
| 45 | pszOdinDebugChannel)); \
|
---|
[594] | 46 | cRet rc = ODIN_##cName(); \
|
---|
[475] | 47 | dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
|
---|
| 48 | pszOdinDebugChannel, \
|
---|
| 49 | rc)); \
|
---|
| 50 | SetFS(sel); \
|
---|
| 51 | return rc; \
|
---|
| 52 | } \
|
---|
| 53 | \
|
---|
[484] | 54 | cRet ODIN_INTERNAL ODIN_##cName (void)
|
---|
[475] | 55 |
|
---|
| 56 |
|
---|
| 57 | #define ODINPROCEDURE0(cName) \
|
---|
[484] | 58 | void ODIN_INTERNAL ODIN_##cName (void); \
|
---|
| 59 | void WINAPI cName(void) \
|
---|
[475] | 60 | { \
|
---|
| 61 | unsigned short sel = RestoreOS2FS(); \
|
---|
| 62 | dprintf(("%s: void "#cName"() enter\n", \
|
---|
| 63 | pszOdinDebugChannel)); \
|
---|
[491] | 64 | ODIN_##cName(); \
|
---|
[475] | 65 | dprintf(("%s: void "#cName"() leave\n", \
|
---|
| 66 | pszOdinDebugChannel)); \
|
---|
| 67 | SetFS(sel); \
|
---|
| 68 | } \
|
---|
| 69 | \
|
---|
[484] | 70 | void ODIN_INTERNAL ODIN_##cName (void)
|
---|
[475] | 71 |
|
---|
| 72 |
|
---|
| 73 | /* ---------- 1 parameters ---------- */
|
---|
| 74 | #define ODINFUNCTION1(cRet,cName,t1,a1) \
|
---|
[484] | 75 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1); \
|
---|
| 76 | cRet WINAPI cName(t1 a1) \
|
---|
[475] | 77 | { \
|
---|
| 78 | unsigned short sel = RestoreOS2FS(); \
|
---|
| 79 | dprintf(("%s: "#cRet" "#cName"("#t1" "#a1"=%08xh) enter\n", \
|
---|
| 80 | pszOdinDebugChannel, \
|
---|
| 81 | a1)); \
|
---|
[491] | 82 | cRet rc = ODIN_##cName(a1); \
|
---|
[475] | 83 | dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
|
---|
| 84 | pszOdinDebugChannel, \
|
---|
| 85 | rc)); \
|
---|
| 86 | SetFS(sel); \
|
---|
| 87 | return rc; \
|
---|
| 88 | } \
|
---|
| 89 | \
|
---|
[484] | 90 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1)
|
---|
[475] | 91 |
|
---|
| 92 | #define ODINPROCEDURE1(cName,t1,a1) \
|
---|
[484] | 93 | void ODIN_INTERNAL ODIN_##cName (t1 a1); \
|
---|
| 94 | void WINAPI cName(t1 a1) \
|
---|
[475] | 95 | { \
|
---|
| 96 | unsigned short sel = RestoreOS2FS(); \
|
---|
| 97 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh) enter\n", \
|
---|
| 98 | pszOdinDebugChannel, \
|
---|
| 99 | a1)); \
|
---|
[491] | 100 | ODIN_##cName(a1); \
|
---|
[475] | 101 | dprintf(("%s: void "#cName"() leave\n", \
|
---|
| 102 | pszOdinDebugChannel)); \
|
---|
| 103 | SetFS(sel); \
|
---|
| 104 | } \
|
---|
| 105 | \
|
---|
[484] | 106 | void ODIN_INTERNAL ODIN_##cName (t1 a1)
|
---|
[475] | 107 |
|
---|
| 108 |
|
---|
| 109 | /* ---------- 2 parameters ---------- */
|
---|
| 110 | #define ODINFUNCTION2(cRet,cName,t1,a1,t2,a2) \
|
---|
[484] | 111 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2); \
|
---|
| 112 | cRet WINAPI cName(t1 a1,t2 a2) \
|
---|
[475] | 113 | { \
|
---|
| 114 | unsigned short sel = RestoreOS2FS(); \
|
---|
| 115 | dprintf(("%s: "#cRet" "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh) enter\n", \
|
---|
| 116 | pszOdinDebugChannel, \
|
---|
| 117 | a1,a2)); \
|
---|
[491] | 118 | cRet rc = ODIN_##cName(a1,a2); \
|
---|
[475] | 119 | dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
|
---|
| 120 | pszOdinDebugChannel, \
|
---|
| 121 | rc)); \
|
---|
| 122 | SetFS(sel); \
|
---|
| 123 | return rc; \
|
---|
| 124 | } \
|
---|
| 125 | \
|
---|
[484] | 126 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2)
|
---|
[475] | 127 |
|
---|
| 128 | #define ODINPROCEDURE2(cName,t1,a1,t2,a2) \
|
---|
[484] | 129 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2); \
|
---|
| 130 | void WINAPI cName(t1 a1,t2 a2) \
|
---|
[475] | 131 | { \
|
---|
| 132 | unsigned short sel = RestoreOS2FS(); \
|
---|
| 133 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh) enter\n", \
|
---|
| 134 | pszOdinDebugChannel, \
|
---|
| 135 | a1,a2)); \
|
---|
[491] | 136 | ODIN_##cName(a1,a2); \
|
---|
[475] | 137 | dprintf(("%s: void "#cName"() leave\n", \
|
---|
| 138 | pszOdinDebugChannel)); \
|
---|
| 139 | SetFS(sel); \
|
---|
| 140 | } \
|
---|
| 141 | \
|
---|
[484] | 142 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2)
|
---|
[475] | 143 |
|
---|
| 144 |
|
---|
| 145 | /* ---------- 3 parameters ---------- */
|
---|
| 146 | #define ODINFUNCTION3(cRet,cName,t1,a1,t2,a2,t3,a3) \
|
---|
[484] | 147 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3); \
|
---|
| 148 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3) \
|
---|
[475] | 149 | { \
|
---|
| 150 | unsigned short sel = RestoreOS2FS(); \
|
---|
| 151 | dprintf(("%s: "#cRet" "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh) enter\n", \
|
---|
| 152 | pszOdinDebugChannel, \
|
---|
| 153 | a1,a2,a3)); \
|
---|
[491] | 154 | cRet rc = ODIN_##cName(a1,a2,a3); \
|
---|
[475] | 155 | dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
|
---|
| 156 | pszOdinDebugChannel, \
|
---|
| 157 | rc)); \
|
---|
| 158 | SetFS(sel); \
|
---|
| 159 | return rc; \
|
---|
| 160 | } \
|
---|
| 161 | \
|
---|
[484] | 162 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3)
|
---|
[475] | 163 |
|
---|
| 164 | #define ODINPROCEDURE3(cName,t1,a1,t2,a2,t3,a3) \
|
---|
[484] | 165 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3); \
|
---|
| 166 | void WINAPI cName(t1 a1,t2 a2,t3 a3) \
|
---|
[475] | 167 | { \
|
---|
| 168 | unsigned short sel = RestoreOS2FS(); \
|
---|
| 169 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh) enter\n", \
|
---|
| 170 | pszOdinDebugChannel, \
|
---|
| 171 | a1,a2,a3)); \
|
---|
[491] | 172 | ODIN_##cName(a1,a2,a3); \
|
---|
[475] | 173 | dprintf(("%s: void "#cName"() leave\n", \
|
---|
| 174 | pszOdinDebugChannel)); \
|
---|
| 175 | SetFS(sel); \
|
---|
| 176 | } \
|
---|
| 177 | \
|
---|
[484] | 178 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3)
|
---|
[475] | 179 |
|
---|
| 180 |
|
---|
| 181 | /* ---------- 4 parameters ---------- */
|
---|
| 182 | #define ODINFUNCTION4(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4) \
|
---|
[484] | 183 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4); \
|
---|
| 184 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4) \
|
---|
[475] | 185 | { \
|
---|
| 186 | unsigned short sel = RestoreOS2FS(); \
|
---|
| 187 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh, "#t4" "#a4"=%08xh) enter\n", \
|
---|
| 188 | pszOdinDebugChannel, \
|
---|
| 189 | a1,a2,a3,a4)); \
|
---|
[491] | 190 | cRet rc = ODIN_##cName(a1,a2,a3,a4); \
|
---|
[475] | 191 | dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
|
---|
| 192 | pszOdinDebugChannel, \
|
---|
| 193 | rc)); \
|
---|
| 194 | SetFS(sel); \
|
---|
| 195 | return rc; \
|
---|
| 196 | } \
|
---|
| 197 | \
|
---|
[484] | 198 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4)
|
---|
[475] | 199 |
|
---|
| 200 | #define ODINPROCEDURE4(cName,t1,a1,t2,a2,t3,a3,t4,a4) \
|
---|
[484] | 201 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4); \
|
---|
| 202 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4) \
|
---|
[475] | 203 | { \
|
---|
| 204 | unsigned short sel = RestoreOS2FS(); \
|
---|
| 205 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh, "#t4" "#a4"=%08xh) enter\n", \
|
---|
| 206 | pszOdinDebugChannel, \
|
---|
| 207 | a1,a2,a3,a4)); \
|
---|
[491] | 208 | ODIN_##cName(a1,a2,a3,a4); \
|
---|
[475] | 209 | dprintf(("%s: void "#cName"() leave\n", \
|
---|
| 210 | pszOdinDebugChannel)); \
|
---|
| 211 | SetFS(sel); \
|
---|
| 212 | } \
|
---|
| 213 | \
|
---|
[484] | 214 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4)
|
---|
[475] | 215 |
|
---|
| 216 |
|
---|
| 217 | /* ---------- 5 parameters ---------- */
|
---|
| 218 | #define ODINFUNCTION5(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5) \
|
---|
[484] | 219 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5); \
|
---|
| 220 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5) \
|
---|
[475] | 221 | { \
|
---|
| 222 | unsigned short sel = RestoreOS2FS(); \
|
---|
| 223 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh" \
|
---|
| 224 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh) enter\n", \
|
---|
| 225 | pszOdinDebugChannel, \
|
---|
| 226 | a1,a2,a3,a4,a5)); \
|
---|
[491] | 227 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5); \
|
---|
[475] | 228 | dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
|
---|
| 229 | pszOdinDebugChannel, \
|
---|
| 230 | rc)); \
|
---|
| 231 | SetFS(sel); \
|
---|
| 232 | return rc; \
|
---|
| 233 | } \
|
---|
| 234 | \
|
---|
[484] | 235 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5)
|
---|
[475] | 236 |
|
---|
| 237 | #define ODINPROCEDURE5(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5) \
|
---|
[484] | 238 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5); \
|
---|
| 239 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5) \
|
---|
[475] | 240 | { \
|
---|
| 241 | unsigned short sel = RestoreOS2FS(); \
|
---|
| 242 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
|
---|
| 243 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh) enter\n", \
|
---|
| 244 | pszOdinDebugChannel, \
|
---|
| 245 | a1,a2,a3,a4,a5)); \
|
---|
[491] | 246 | ODIN_##cName(a1,a2,a3,a4,a5); \
|
---|
[475] | 247 | dprintf(("%s: void "#cName"() leave\n", \
|
---|
| 248 | pszOdinDebugChannel)); \
|
---|
| 249 | SetFS(sel); \
|
---|
| 250 | } \
|
---|
| 251 | \
|
---|
[484] | 252 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5)
|
---|
[475] | 253 |
|
---|
| 254 |
|
---|
| 255 | /* ---------- 6 parameters ---------- */
|
---|
| 256 | #define ODINFUNCTION6(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6) \
|
---|
[484] | 257 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6); \
|
---|
| 258 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6) \
|
---|
[475] | 259 | { \
|
---|
| 260 | unsigned short sel = RestoreOS2FS(); \
|
---|
[476] | 261 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
|
---|
| 262 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh) enter\n", \
|
---|
[475] | 263 | pszOdinDebugChannel, \
|
---|
| 264 | a1,a2,a3)); \
|
---|
[491] | 265 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5,a6); \
|
---|
[475] | 266 | dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
|
---|
| 267 | pszOdinDebugChannel, \
|
---|
| 268 | rc)); \
|
---|
| 269 | SetFS(sel); \
|
---|
| 270 | return rc; \
|
---|
| 271 | } \
|
---|
| 272 | \
|
---|
[484] | 273 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6)
|
---|
[475] | 274 |
|
---|
| 275 | #define ODINPROCEDURE6(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6) \
|
---|
[484] | 276 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6); \
|
---|
| 277 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6) \
|
---|
[475] | 278 | { \
|
---|
| 279 | unsigned short sel = RestoreOS2FS(); \
|
---|
[476] | 280 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
|
---|
| 281 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh) enter\n", \
|
---|
[475] | 282 | pszOdinDebugChannel, \
|
---|
| 283 | a1,a2,a3)); \
|
---|
[491] | 284 | ODIN_##cName(a1,a2,a3,a4,a5,a6); \
|
---|
[475] | 285 | dprintf(("%s: void "#cName"() leave\n", \
|
---|
| 286 | pszOdinDebugChannel)); \
|
---|
| 287 | SetFS(sel); \
|
---|
| 288 | } \
|
---|
| 289 | \
|
---|
[484] | 290 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6)
|
---|
[475] | 291 |
|
---|
| 292 |
|
---|
| 293 | /* ---------- 7 parameters ---------- */
|
---|
| 294 | #define ODINFUNCTION7(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7) \
|
---|
[484] | 295 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7); \
|
---|
| 296 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7) \
|
---|
[475] | 297 | { \
|
---|
| 298 | unsigned short sel = RestoreOS2FS(); \
|
---|
[476] | 299 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
|
---|
| 300 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh) enter\n", \
|
---|
[475] | 301 | pszOdinDebugChannel, \
|
---|
| 302 | a1,a2,a3)); \
|
---|
[491] | 303 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7); \
|
---|
[475] | 304 | dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
|
---|
| 305 | pszOdinDebugChannel, \
|
---|
| 306 | rc)); \
|
---|
| 307 | SetFS(sel); \
|
---|
| 308 | return rc; \
|
---|
| 309 | } \
|
---|
| 310 | \
|
---|
[484] | 311 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7)
|
---|
[475] | 312 |
|
---|
| 313 | #define ODINPROCEDURE7(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7) \
|
---|
[484] | 314 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7); \
|
---|
| 315 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7) \
|
---|
[475] | 316 | { \
|
---|
| 317 | unsigned short sel = RestoreOS2FS(); \
|
---|
[476] | 318 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
|
---|
| 319 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh) enter\n", \
|
---|
[475] | 320 | pszOdinDebugChannel, \
|
---|
| 321 | a1,a2,a3)); \
|
---|
[491] | 322 | ODIN_##cName(a1,a2,a3,a4,a5,a6,a7); \
|
---|
[475] | 323 | dprintf(("%s: void "#cName"() leave\n", \
|
---|
| 324 | pszOdinDebugChannel)); \
|
---|
| 325 | SetFS(sel); \
|
---|
| 326 | } \
|
---|
| 327 | \
|
---|
[484] | 328 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7)
|
---|
[475] | 329 |
|
---|
| 330 |
|
---|
| 331 | /* ---------- 8 parameters ---------- */
|
---|
| 332 | #define ODINFUNCTION8(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8) \
|
---|
[484] | 333 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8); \
|
---|
| 334 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8) \
|
---|
[475] | 335 | { \
|
---|
| 336 | unsigned short sel = RestoreOS2FS(); \
|
---|
[476] | 337 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
|
---|
| 338 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh" \
|
---|
| 339 | ", "#t8" "#a8"=%08xh) enter\n", \
|
---|
[475] | 340 | pszOdinDebugChannel, \
|
---|
| 341 | a1,a2,a3)); \
|
---|
[491] | 342 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8); \
|
---|
[475] | 343 | dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
|
---|
| 344 | pszOdinDebugChannel, \
|
---|
| 345 | rc)); \
|
---|
| 346 | SetFS(sel); \
|
---|
| 347 | return rc; \
|
---|
| 348 | } \
|
---|
| 349 | \
|
---|
[484] | 350 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8)
|
---|
[475] | 351 |
|
---|
| 352 | #define ODINPROCEDURE8(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8) \
|
---|
[484] | 353 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8); \
|
---|
| 354 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8) \
|
---|
[475] | 355 | { \
|
---|
| 356 | unsigned short sel = RestoreOS2FS(); \
|
---|
[476] | 357 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
|
---|
| 358 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh" \
|
---|
| 359 | ", "#t8" "#a8"=%08xh) enter\n", \
|
---|
[475] | 360 | pszOdinDebugChannel, \
|
---|
| 361 | a1,a2,a3)); \
|
---|
[491] | 362 | ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8); \
|
---|
[475] | 363 | dprintf(("%s: void "#cName"() leave\n", \
|
---|
| 364 | pszOdinDebugChannel)); \
|
---|
| 365 | SetFS(sel); \
|
---|
| 366 | } \
|
---|
| 367 | \
|
---|
[484] | 368 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8)
|
---|
[475] | 369 |
|
---|
| 370 |
|
---|
| 371 | /* ---------- 9 parameters ---------- */
|
---|
| 372 | #define ODINFUNCTION9(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9) \
|
---|
[484] | 373 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9); \
|
---|
| 374 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9) \
|
---|
[475] | 375 | { \
|
---|
| 376 | unsigned short sel = RestoreOS2FS(); \
|
---|
[476] | 377 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
|
---|
| 378 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh" \
|
---|
| 379 | ", "#t8" "#a8"=%08xh, "#t9" "#a9"=%08xh) enter\n", \
|
---|
[475] | 380 | pszOdinDebugChannel, \
|
---|
| 381 | a1,a2,a3)); \
|
---|
[491] | 382 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9); \
|
---|
[475] | 383 | dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
|
---|
| 384 | pszOdinDebugChannel, \
|
---|
| 385 | rc)); \
|
---|
| 386 | SetFS(sel); \
|
---|
| 387 | return rc; \
|
---|
| 388 | } \
|
---|
| 389 | \
|
---|
[484] | 390 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9)
|
---|
[475] | 391 |
|
---|
| 392 | #define ODINPROCEDURE9(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9) \
|
---|
[484] | 393 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9); \
|
---|
| 394 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9) \
|
---|
[475] | 395 | { \
|
---|
| 396 | unsigned short sel = RestoreOS2FS(); \
|
---|
[476] | 397 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
|
---|
| 398 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh" \
|
---|
| 399 | ", "#t8" "#a8"=%08xh, "#t9" "#a9"=%08xh) enter\n", \
|
---|
[475] | 400 | pszOdinDebugChannel, \
|
---|
| 401 | a1,a2,a3)); \
|
---|
[491] | 402 | ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9); \
|
---|
[475] | 403 | dprintf(("%s: void "#cName"() leave\n", \
|
---|
| 404 | pszOdinDebugChannel)); \
|
---|
| 405 | SetFS(sel); \
|
---|
| 406 | } \
|
---|
| 407 | \
|
---|
[484] | 408 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9)
|
---|
[475] | 409 |
|
---|
| 410 |
|
---|
| 411 | /* ---------- 10 parameters ---------- */
|
---|
| 412 | #define ODINFUNCTION10(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10) \
|
---|
[484] | 413 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10); \
|
---|
| 414 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10) \
|
---|
[475] | 415 | { \
|
---|
| 416 | unsigned short sel = RestoreOS2FS(); \
|
---|
[476] | 417 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
|
---|
| 418 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh" \
|
---|
| 419 | ", "#t8" "#a8"=%08xh, "#t9" "#a9"=%08xh, "#t10" "#a10"=%08xh) enter\n", \
|
---|
[475] | 420 | pszOdinDebugChannel, \
|
---|
| 421 | a1,a2,a3)); \
|
---|
[491] | 422 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10); \
|
---|
[475] | 423 | dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
|
---|
| 424 | pszOdinDebugChannel, \
|
---|
| 425 | rc)); \
|
---|
| 426 | SetFS(sel); \
|
---|
| 427 | return rc; \
|
---|
| 428 | } \
|
---|
| 429 | \
|
---|
[484] | 430 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10)
|
---|
[475] | 431 |
|
---|
| 432 | #define ODINPROCEDURE10(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10) \
|
---|
[484] | 433 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10); \
|
---|
| 434 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10) \
|
---|
[475] | 435 | { \
|
---|
| 436 | unsigned short sel = RestoreOS2FS(); \
|
---|
[476] | 437 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
|
---|
| 438 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh" \
|
---|
| 439 | ", "#t8" "#a8"=%08xh, "#t9" "#a9"=%08xh, "#t10" "#a10"=%08xh) enter\n", \
|
---|
[475] | 440 | pszOdinDebugChannel, \
|
---|
| 441 | a1,a2,a3)); \
|
---|
[491] | 442 | ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10); \
|
---|
[475] | 443 | dprintf(("%s: void "#cName"() leave\n", \
|
---|
| 444 | pszOdinDebugChannel)); \
|
---|
| 445 | SetFS(sel); \
|
---|
| 446 | } \
|
---|
| 447 | \
|
---|
[484] | 448 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10)
|
---|
[475] | 449 |
|
---|
| 450 |
|
---|
| 451 | /* ---------- 11 parameters ---------- */
|
---|
| 452 | #define ODINFUNCTION11(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10,t11,a11) \
|
---|
[484] | 453 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11); \
|
---|
| 454 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11) \
|
---|
[475] | 455 | { \
|
---|
| 456 | unsigned short sel = RestoreOS2FS(); \
|
---|
[476] | 457 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
|
---|
| 458 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh" \
|
---|
| 459 | ", "#t8" "#a8"=%08xh, "#t9" "#a9"=%08xh, "#t10" "#a10"=%08xh, "#t11" "#a11"=%08xh) enter\n", \
|
---|
[475] | 460 | pszOdinDebugChannel, \
|
---|
| 461 | a1,a2,a3)); \
|
---|
[491] | 462 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11); \
|
---|
[475] | 463 | dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
|
---|
| 464 | pszOdinDebugChannel, \
|
---|
| 465 | rc)); \
|
---|
| 466 | SetFS(sel); \
|
---|
| 467 | return rc; \
|
---|
| 468 | } \
|
---|
| 469 | \
|
---|
[484] | 470 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11)
|
---|
[475] | 471 |
|
---|
| 472 | #define ODINPROCEDURE11(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10,t11,a11) \
|
---|
[484] | 473 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11); \
|
---|
| 474 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11) \
|
---|
[475] | 475 | { \
|
---|
| 476 | unsigned short sel = RestoreOS2FS(); \
|
---|
[476] | 477 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
|
---|
| 478 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh" \
|
---|
| 479 | ", "#t8" "#a8"=%08xh, "#t9" "#a9"=%08xh, "#t10" "#a10"=%08xh, "#t11" "#a11"=%08xh) enter\n", \
|
---|
[475] | 480 | pszOdinDebugChannel, \
|
---|
| 481 | a1,a2,a3)); \
|
---|
[491] | 482 | ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11); \
|
---|
[475] | 483 | dprintf(("%s: void "#cName"() leave\n", \
|
---|
| 484 | pszOdinDebugChannel)); \
|
---|
| 485 | SetFS(sel); \
|
---|
| 486 | } \
|
---|
| 487 | \
|
---|
[484] | 488 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11)
|
---|
[475] | 489 |
|
---|
| 490 |
|
---|
| 491 | /* ---------- 12 parameters ---------- */
|
---|
| 492 | #define ODINFUNCTION12(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10,t11,a11,t12,a12) \
|
---|
[484] | 493 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12); \
|
---|
| 494 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12) \
|
---|
[475] | 495 | { \
|
---|
| 496 | unsigned short sel = RestoreOS2FS(); \
|
---|
[476] | 497 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
|
---|
| 498 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh" \
|
---|
| 499 | ", "#t8" "#a8"=%08xh, "#t9" "#a9"=%08xh, "#t10" "#a10"=%08xh, "#t11" "#a11"=%08xh" \
|
---|
| 500 | ", "#t12" "#a12"=%08xh) enter\n", \
|
---|
[475] | 501 | pszOdinDebugChannel, \
|
---|
| 502 | a1,a2,a3)); \
|
---|
[491] | 503 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12); \
|
---|
[475] | 504 | dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
|
---|
| 505 | pszOdinDebugChannel, \
|
---|
| 506 | rc)); \
|
---|
| 507 | SetFS(sel); \
|
---|
| 508 | return rc; \
|
---|
| 509 | } \
|
---|
| 510 | \
|
---|
[484] | 511 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12)
|
---|
[475] | 512 |
|
---|
| 513 | #define ODINPROCEDURE12(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10,t11,a11,t12,a12) \
|
---|
[484] | 514 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12); \
|
---|
| 515 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12) \
|
---|
[475] | 516 | { \
|
---|
| 517 | unsigned short sel = RestoreOS2FS(); \
|
---|
[476] | 518 | dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
|
---|
| 519 | ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh" \
|
---|
| 520 | ", "#t8" "#a8"=%08xh, "#t9" "#a9"=%08xh, "#t10" "#a10"=%08xh, "#t11" "#a11"=%08xh" \
|
---|
| 521 | ", "#t12" "#a12"=%08xh) enter\n", \
|
---|
[475] | 522 | pszOdinDebugChannel, \
|
---|
| 523 | a1,a2,a3)); \
|
---|
[491] | 524 | ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12); \
|
---|
[475] | 525 | dprintf(("%s: void "#cName"() leave\n", \
|
---|
| 526 | pszOdinDebugChannel)); \
|
---|
| 527 | SetFS(sel); \
|
---|
| 528 | } \
|
---|
| 529 | \
|
---|
[484] | 530 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12)
|
---|
[475] | 531 |
|
---|
| 532 |
|
---|
| 533 | #else
|
---|
| 534 |
|
---|
| 535 | /****************************************************************************
|
---|
[473] | 536 | * General Wrapper Macros *
|
---|
| 537 | ****************************************************************************/
|
---|
| 538 |
|
---|
| 539 | /* ---------- 0 parameters ---------- */
|
---|
| 540 | #define ODINFUNCTION0(cRet,cName) \
|
---|
[484] | 541 | cRet ODIN_INTERNAL ODIN_##cName (void);\
|
---|
| 542 | cRet WINAPI cName(void) \
|
---|
[473] | 543 | { \
|
---|
| 544 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 545 | cRet rc = ODIN_##cName(); \
|
---|
[473] | 546 | SetFS(sel); \
|
---|
| 547 | return rc; \
|
---|
| 548 | } \
|
---|
| 549 | \
|
---|
[484] | 550 | cRet ODIN_INTERNAL ODIN_##cName (void)
|
---|
[473] | 551 |
|
---|
| 552 |
|
---|
| 553 | #define ODINPROCEDURE0(cName) \
|
---|
[484] | 554 | void ODIN_INTERNAL ODIN_##cName (void);\
|
---|
| 555 | void WINAPI cName(void) \
|
---|
[473] | 556 | { \
|
---|
| 557 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 558 | ODIN_##cName(); \
|
---|
[473] | 559 | SetFS(sel); \
|
---|
| 560 | } \
|
---|
| 561 | \
|
---|
[484] | 562 | void ODIN_INTERNAL ODIN_##cName (void)
|
---|
[473] | 563 |
|
---|
| 564 |
|
---|
| 565 | /* ---------- 1 parameters ---------- */
|
---|
| 566 | #define ODINFUNCTION1(cRet,cName,t1,a1) \
|
---|
[484] | 567 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1);\
|
---|
| 568 | cRet WINAPI cName(t1 a1) \
|
---|
[473] | 569 | { \
|
---|
| 570 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 571 | cRet rc = ODIN_##cName(a1); \
|
---|
[473] | 572 | SetFS(sel); \
|
---|
| 573 | return rc; \
|
---|
| 574 | } \
|
---|
| 575 | \
|
---|
[484] | 576 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1)
|
---|
[473] | 577 |
|
---|
| 578 | #define ODINPROCEDURE1(cName,t1,a1) \
|
---|
[484] | 579 | void ODIN_INTERNAL ODIN_##cName (t1 a1);\
|
---|
| 580 | void WINAPI cName(t1 a1) \
|
---|
[473] | 581 | { \
|
---|
| 582 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 583 | ODIN_##cName(a1); \
|
---|
[473] | 584 | SetFS(sel); \
|
---|
| 585 | } \
|
---|
| 586 | \
|
---|
[484] | 587 | void ODIN_INTERNAL ODIN_##cName (t1 a1)
|
---|
[473] | 588 |
|
---|
| 589 |
|
---|
| 590 | /* ---------- 2 parameters ---------- */
|
---|
| 591 | #define ODINFUNCTION2(cRet,cName,t1,a1,t2,a2) \
|
---|
[484] | 592 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2); \
|
---|
| 593 | cRet WINAPI cName(t1 a1,t2 a2) \
|
---|
[473] | 594 | { \
|
---|
| 595 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 596 | cRet rc = ODIN_##cName(a1,a2); \
|
---|
[473] | 597 | SetFS(sel); \
|
---|
| 598 | return rc; \
|
---|
| 599 | } \
|
---|
| 600 | \
|
---|
[484] | 601 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2)
|
---|
[473] | 602 |
|
---|
| 603 | #define ODINPROCEDURE2(cName,t1,a1,t2,a2) \
|
---|
[484] | 604 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2);\
|
---|
| 605 | void WINAPI cName(t1 a1,t2 a2) \
|
---|
[473] | 606 | { \
|
---|
| 607 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 608 | ODIN_##cName(a1,a2); \
|
---|
[473] | 609 | SetFS(sel); \
|
---|
| 610 | } \
|
---|
| 611 | \
|
---|
[484] | 612 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2)
|
---|
[473] | 613 |
|
---|
| 614 |
|
---|
| 615 | /* ---------- 3 parameters ---------- */
|
---|
| 616 | #define ODINFUNCTION3(cRet,cName,t1,a1,t2,a2,t3,a3) \
|
---|
[484] | 617 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3); \
|
---|
| 618 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3) \
|
---|
[473] | 619 | { \
|
---|
| 620 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 621 | cRet rc = ODIN_##cName(a1,a2,a3); \
|
---|
[473] | 622 | SetFS(sel); \
|
---|
| 623 | return rc; \
|
---|
| 624 | } \
|
---|
| 625 | \
|
---|
[484] | 626 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3)
|
---|
[473] | 627 |
|
---|
| 628 | #define ODINPROCEDURE3(cName,t1,a1,t2,a2,t3,a3) \
|
---|
[484] | 629 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3); \
|
---|
| 630 | void WINAPI cName(t1 a1,t2 a2,t3 a3) \
|
---|
[473] | 631 | { \
|
---|
| 632 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 633 | ODIN_##cName(a1,a2,a3); \
|
---|
[473] | 634 | SetFS(sel); \
|
---|
| 635 | } \
|
---|
| 636 | \
|
---|
[484] | 637 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3)
|
---|
[473] | 638 |
|
---|
| 639 |
|
---|
| 640 | /* ---------- 4 parameters ---------- */
|
---|
| 641 | #define ODINFUNCTION4(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4) \
|
---|
[484] | 642 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4); \
|
---|
| 643 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4) \
|
---|
[473] | 644 | { \
|
---|
| 645 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 646 | cRet rc = ODIN_##cName(a1,a2,a3,a4); \
|
---|
[473] | 647 | SetFS(sel); \
|
---|
| 648 | return rc; \
|
---|
| 649 | } \
|
---|
| 650 | \
|
---|
[484] | 651 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4)
|
---|
[473] | 652 |
|
---|
| 653 | #define ODINPROCEDURE4(cName,t1,a1,t2,a2,t3,a3,t4,a4) \
|
---|
[484] | 654 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4); \
|
---|
| 655 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4) \
|
---|
[473] | 656 | { \
|
---|
| 657 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 658 | ODIN_##cName(a1,a2,a3,a4); \
|
---|
[473] | 659 | SetFS(sel); \
|
---|
| 660 | } \
|
---|
| 661 | \
|
---|
[484] | 662 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4)
|
---|
[473] | 663 |
|
---|
| 664 |
|
---|
| 665 | /* ---------- 5 parameters ---------- */
|
---|
| 666 | #define ODINFUNCTION5(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5) \
|
---|
[484] | 667 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5); \
|
---|
| 668 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5) \
|
---|
[473] | 669 | { \
|
---|
| 670 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 671 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5); \
|
---|
[473] | 672 | SetFS(sel); \
|
---|
| 673 | return rc; \
|
---|
| 674 | } \
|
---|
| 675 | \
|
---|
[484] | 676 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5)
|
---|
[473] | 677 |
|
---|
| 678 | #define ODINPROCEDURE5(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5) \
|
---|
[484] | 679 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5); \
|
---|
| 680 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5) \
|
---|
[473] | 681 | { \
|
---|
| 682 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 683 | ODIN_##cName(a1,a2,a3,a4,a5); \
|
---|
[473] | 684 | SetFS(sel); \
|
---|
| 685 | } \
|
---|
| 686 | \
|
---|
[484] | 687 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5)
|
---|
[473] | 688 |
|
---|
| 689 |
|
---|
| 690 | /* ---------- 6 parameters ---------- */
|
---|
| 691 | #define ODINFUNCTION6(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6) \
|
---|
[484] | 692 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6); \
|
---|
| 693 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6) \
|
---|
[473] | 694 | { \
|
---|
| 695 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 696 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5,a6); \
|
---|
[473] | 697 | SetFS(sel); \
|
---|
| 698 | return rc; \
|
---|
| 699 | } \
|
---|
| 700 | \
|
---|
[484] | 701 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6)
|
---|
[473] | 702 |
|
---|
| 703 | #define ODINPROCEDURE6(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6) \
|
---|
[484] | 704 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6); \
|
---|
| 705 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6) \
|
---|
[473] | 706 | { \
|
---|
| 707 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 708 | ODIN_##cName(a1,a2,a3,a4,a5,a6); \
|
---|
[473] | 709 | SetFS(sel); \
|
---|
| 710 | } \
|
---|
| 711 | \
|
---|
[484] | 712 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6)
|
---|
[473] | 713 |
|
---|
| 714 |
|
---|
| 715 | /* ---------- 7 parameters ---------- */
|
---|
| 716 | #define ODINFUNCTION7(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7) \
|
---|
[484] | 717 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7); \
|
---|
| 718 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7) \
|
---|
[473] | 719 | { \
|
---|
| 720 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 721 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7); \
|
---|
[473] | 722 | SetFS(sel); \
|
---|
| 723 | return rc; \
|
---|
| 724 | } \
|
---|
| 725 | \
|
---|
[484] | 726 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7)
|
---|
[473] | 727 |
|
---|
| 728 | #define ODINPROCEDURE7(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7) \
|
---|
[484] | 729 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7); \
|
---|
| 730 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7) \
|
---|
[473] | 731 | { \
|
---|
| 732 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 733 | ODIN_##cName(a1,a2,a3,a4,a5,a6,a7); \
|
---|
[473] | 734 | SetFS(sel); \
|
---|
| 735 | } \
|
---|
| 736 | \
|
---|
[484] | 737 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7)
|
---|
[473] | 738 |
|
---|
| 739 |
|
---|
| 740 | /* ---------- 8 parameters ---------- */
|
---|
| 741 | #define ODINFUNCTION8(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8) \
|
---|
[484] | 742 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8); \
|
---|
| 743 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8) \
|
---|
[473] | 744 | { \
|
---|
| 745 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 746 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8); \
|
---|
[473] | 747 | SetFS(sel); \
|
---|
| 748 | return rc; \
|
---|
| 749 | } \
|
---|
| 750 | \
|
---|
[595] | 751 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8)
|
---|
[473] | 752 |
|
---|
| 753 | #define ODINPROCEDURE8(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8) \
|
---|
[484] | 754 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8); \
|
---|
| 755 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8) \
|
---|
[473] | 756 | { \
|
---|
| 757 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 758 | ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8); \
|
---|
[473] | 759 | SetFS(sel); \
|
---|
| 760 | } \
|
---|
| 761 | \
|
---|
[484] | 762 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8)
|
---|
[473] | 763 |
|
---|
| 764 |
|
---|
[475] | 765 | /* ---------- 9 parameters ---------- */
|
---|
| 766 | #define ODINFUNCTION9(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9) \
|
---|
[484] | 767 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9); \
|
---|
| 768 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9) \
|
---|
[475] | 769 | { \
|
---|
| 770 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 771 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9); \
|
---|
[475] | 772 | SetFS(sel); \
|
---|
| 773 | return rc; \
|
---|
| 774 | } \
|
---|
| 775 | \
|
---|
[595] | 776 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9)
|
---|
[473] | 777 |
|
---|
[475] | 778 | #define ODINPROCEDURE9(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9) \
|
---|
[484] | 779 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9); \
|
---|
| 780 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9) \
|
---|
[475] | 781 | { \
|
---|
| 782 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 783 | ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9); \
|
---|
[475] | 784 | SetFS(sel); \
|
---|
| 785 | } \
|
---|
| 786 | \
|
---|
[484] | 787 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9)
|
---|
[475] | 788 |
|
---|
| 789 |
|
---|
| 790 | /* ---------- 10 parameters ---------- */
|
---|
| 791 | #define ODINFUNCTION10(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10) \
|
---|
[484] | 792 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10); \
|
---|
| 793 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10) \
|
---|
[475] | 794 | { \
|
---|
| 795 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 796 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10); \
|
---|
[475] | 797 | SetFS(sel); \
|
---|
| 798 | return rc; \
|
---|
| 799 | } \
|
---|
| 800 | \
|
---|
[595] | 801 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10)
|
---|
[475] | 802 |
|
---|
| 803 | #define ODINPROCEDURE10(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10) \
|
---|
[484] | 804 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10); \
|
---|
| 805 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10) \
|
---|
[475] | 806 | { \
|
---|
| 807 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 808 | ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10); \
|
---|
[475] | 809 | SetFS(sel); \
|
---|
| 810 | } \
|
---|
| 811 | \
|
---|
[484] | 812 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10)
|
---|
[475] | 813 |
|
---|
| 814 |
|
---|
| 815 | /* ---------- 11 parameters ---------- */
|
---|
| 816 | #define ODINFUNCTION11(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10,t11,a11) \
|
---|
[484] | 817 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11); \
|
---|
| 818 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11) \
|
---|
[475] | 819 | { \
|
---|
| 820 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 821 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11); \
|
---|
[475] | 822 | SetFS(sel); \
|
---|
| 823 | return rc; \
|
---|
| 824 | } \
|
---|
| 825 | \
|
---|
[595] | 826 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11)
|
---|
[475] | 827 |
|
---|
| 828 | #define ODINPROCEDURE11(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10,t11,a11) \
|
---|
[484] | 829 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11); \
|
---|
| 830 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11) \
|
---|
[475] | 831 | { \
|
---|
| 832 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 833 | ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11); \
|
---|
[475] | 834 | SetFS(sel); \
|
---|
| 835 | } \
|
---|
| 836 | \
|
---|
[484] | 837 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11)
|
---|
[475] | 838 |
|
---|
| 839 |
|
---|
| 840 | /* ---------- 12 parameters ---------- */
|
---|
| 841 | #define ODINFUNCTION12(cRet,cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10,t11,a11,t12,a12) \
|
---|
[484] | 842 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12); \
|
---|
| 843 | cRet WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12) \
|
---|
[475] | 844 | { \
|
---|
| 845 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 846 | cRet rc = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12); \
|
---|
[475] | 847 | SetFS(sel); \
|
---|
| 848 | return rc; \
|
---|
| 849 | } \
|
---|
| 850 | \
|
---|
[595] | 851 | cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12)
|
---|
[475] | 852 |
|
---|
| 853 | #define ODINPROCEDURE12(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10,t11,a11,t12,a12) \
|
---|
[484] | 854 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12); \
|
---|
| 855 | void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12) \
|
---|
[475] | 856 | { \
|
---|
| 857 | unsigned short sel = RestoreOS2FS(); \
|
---|
[491] | 858 | ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12); \
|
---|
[475] | 859 | SetFS(sel); \
|
---|
| 860 | } \
|
---|
| 861 | \
|
---|
[484] | 862 | void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12)
|
---|
[475] | 863 |
|
---|
| 864 |
|
---|
| 865 |
|
---|
| 866 | #endif
|
---|
| 867 |
|
---|
[473] | 868 | #endif /* _ODINWRAP_H_ */
|
---|