Ignore:
Timestamp:
Oct 25, 1999, 5:04:37 PM (26 years ago)
Author:
phaller
Message:

Fix: Bugfix + Heap Check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/odinwrap.h

    r595 r1437  
    1 /* $Id: odinwrap.h,v 1.10 1999-08-20 09:56:36 phaller Exp $ */
     1/* $Id: odinwrap.h,v 1.11 1999-10-25 15:04:37 phaller Exp $ */
    22
    33/*
     
    4444    dprintf(("%s: "#cRet" "#cName"() enter\n",  \
    4545             pszOdinDebugChannel));           \
     46    _heap_check();                            \
    4647    cRet   rc  = ODIN_##cName();              \
     48    _heap_check();                            \
    4749    dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
    4850             pszOdinDebugChannel,             \
     
    6264    dprintf(("%s: void "#cName"() enter\n",    \
    6365             pszOdinDebugChannel));           \
     66    _heap_check();                            \
    6467    ODIN_##cName();                                  \
     68    _heap_check();                            \
    6569    dprintf(("%s: void "#cName"() leave\n",    \
    6670             pszOdinDebugChannel));           \
     
    8084             pszOdinDebugChannel,             \
    8185             a1));                            \
     86    _heap_check();                            \
    8287    cRet   rc  = ODIN_##cName(a1);                   \
     88    _heap_check();                            \
    8389    dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
    8490             pszOdinDebugChannel,             \
     
    98104             pszOdinDebugChannel,             \
    99105             a1));                            \
     106    _heap_check();                            \
    100107    ODIN_##cName(a1);                                \
     108    _heap_check();                            \
    101109    dprintf(("%s: void "#cName"() leave\n",    \
    102110             pszOdinDebugChannel));           \
     
    116124             pszOdinDebugChannel,             \
    117125             a1,a2));                         \
     126    _heap_check();                            \
    118127    cRet   rc  = ODIN_##cName(a1,a2);                \
     128    _heap_check();                            \
    119129    dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
    120130             pszOdinDebugChannel,             \
     
    134144             pszOdinDebugChannel,             \
    135145             a1,a2));                         \
     146    _heap_check();                            \
    136147    ODIN_##cName(a1,a2);                             \
     148    _heap_check();                            \
    137149    dprintf(("%s: void "#cName"() leave\n",    \
    138150             pszOdinDebugChannel));           \
     
    152164             pszOdinDebugChannel,             \
    153165             a1,a2,a3));                      \
     166    _heap_check();                            \
    154167    cRet   rc  = ODIN_##cName(a1,a2,a3); \
     168    _heap_check();                            \
    155169    dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
    156170             pszOdinDebugChannel,             \
     
    170184             pszOdinDebugChannel,             \
    171185             a1,a2,a3));                      \
     186    _heap_check();                            \
    172187    ODIN_##cName(a1,a2,a3);              \
     188    _heap_check();                            \
    173189    dprintf(("%s: void "#cName"() leave\n",    \
    174190             pszOdinDebugChannel));           \
     
    185201  {                               \
    186202    unsigned short sel = RestoreOS2FS();  \
    187     dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh, "#t4" "#a4"=%08xh) enter\n", \
     203    dprintf(("%s: "#cRet" "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh, "#t4" "#a4"=%08xh) enter\n", \
    188204             pszOdinDebugChannel,             \
    189205             a1,a2,a3,a4));                   \
     206    _heap_check();                            \
    190207    cRet   rc  = ODIN_##cName(a1,a2,a3,a4); \
     208    _heap_check();                            \
    191209    dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
    192210             pszOdinDebugChannel,             \
     
    206224             pszOdinDebugChannel,             \
    207225             a1,a2,a3,a4));                    \
     226    _heap_check();                            \
    208227    ODIN_##cName(a1,a2,a3,a4); \
     228    _heap_check();                            \
    209229    dprintf(("%s: void "#cName"() leave\n",    \
    210230             pszOdinDebugChannel));           \
     
    221241  {                               \
    222242    unsigned short sel = RestoreOS2FS();  \
    223     dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh" \
     243    dprintf(("%s: "#cRet" "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh" \
    224244             ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh) enter\n", \
    225245             pszOdinDebugChannel,             \
    226246             a1,a2,a3,a4,a5));                \
     247    _heap_check();                            \
    227248    cRet   rc  = ODIN_##cName(a1,a2,a3,a4,a5); \
     249    _heap_check();                            \
    228250    dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
    229251             pszOdinDebugChannel,             \
     
    244266             pszOdinDebugChannel,             \
    245267             a1,a2,a3,a4,a5));                \
     268    _heap_check();                            \
    246269    ODIN_##cName(a1,a2,a3,a4,a5); \
     270    _heap_check();                            \
    247271    dprintf(("%s: void "#cName"() leave\n",    \
    248272             pszOdinDebugChannel));           \
     
    259283  {                               \
    260284    unsigned short sel = RestoreOS2FS();  \
    261     dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
     285    dprintf(("%s: "#cRet" "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
    262286             ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh) enter\n", \
    263287             pszOdinDebugChannel,             \
    264              a1,a2,a3));                      \
     288             a1,a2,a3,a4,a5,a6));             \
     289    _heap_check();                            \
    265290    cRet   rc  = ODIN_##cName(a1,a2,a3,a4,a5,a6); \
     291    _heap_check();                            \
    266292    dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
    267293             pszOdinDebugChannel,             \
     
    281307             ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh) enter\n", \
    282308             pszOdinDebugChannel,             \
    283              a1,a2,a3));                      \
     309             a1,a2,a3,a4,a5,a6));             \
     310    _heap_check();                            \
    284311    ODIN_##cName(a1,a2,a3,a4,a5,a6); \
     312    _heap_check();                            \
    285313    dprintf(("%s: void "#cName"() leave\n",    \
    286314             pszOdinDebugChannel));           \
     
    297325  {                               \
    298326    unsigned short sel = RestoreOS2FS();  \
    299     dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
     327    dprintf(("%s: "#cRet" "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
    300328             ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh) enter\n", \
    301329             pszOdinDebugChannel,             \
    302              a1,a2,a3));                      \
     330             a1,a2,a3,a4,a5,a6,a7));          \
     331    _heap_check();                            \
    303332    cRet   rc  = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7); \
     333    _heap_check();                            \
    304334    dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
    305335             pszOdinDebugChannel,             \
     
    319349             ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh) enter\n", \
    320350             pszOdinDebugChannel,             \
    321              a1,a2,a3));                      \
     351             a1,a2,a3,a4,a5,a6,a7));          \
     352    _heap_check();                            \
    322353    ODIN_##cName(a1,a2,a3,a4,a5,a6,a7); \
     354    _heap_check();                            \
    323355    dprintf(("%s: void "#cName"() leave\n",    \
    324356             pszOdinDebugChannel));           \
     
    335367  {                               \
    336368    unsigned short sel = RestoreOS2FS();  \
     369    dprintf(("%s: "#cRet" "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
     370             ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh" \
     371             ", "#t8" "#a8"=%08xh) enter\n", \
     372             pszOdinDebugChannel,             \
     373             a1,a2,a3,a4,a5,a6,a7,a8));       \
     374    _heap_check();                            \
     375    cRet   rc  = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8); \
     376    _heap_check();                            \
     377    dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
     378             pszOdinDebugChannel,             \
     379             rc));                            \
     380    SetFS(sel);                   \
     381    return rc;                    \
     382  }                               \
     383                                  \
     384  cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8)
     385
     386#define ODINPROCEDURE8(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8)  \
     387  void ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8);  \
     388  void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8)    \
     389  {                               \
     390    unsigned short sel = RestoreOS2FS();  \
    337391    dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
    338392             ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh" \
    339393             ", "#t8" "#a8"=%08xh) enter\n", \
    340394             pszOdinDebugChannel,             \
    341              a1,a2,a3));                      \
    342     cRet   rc  = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8); \
    343     dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
    344              pszOdinDebugChannel,             \
    345              rc));                            \
    346     SetFS(sel);                   \
    347     return rc;                    \
    348   }                               \
    349                                   \
    350   cRet ODIN_INTERNAL ODIN_##cName (t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8)
    351 
    352 #define ODINPROCEDURE8(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8)  \
    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)    \
    355   {                               \
    356     unsigned short sel = RestoreOS2FS();  \
    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", \
    360              pszOdinDebugChannel,             \
    361              a1,a2,a3));                      \
     395             a1,a2,a3,a4,a5,a6,a7,a8));       \
     396    _heap_check();                            \
    362397    ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8); \
     398    _heap_check();                            \
    363399    dprintf(("%s: void "#cName"() leave\n",    \
    364400             pszOdinDebugChannel));           \
     
    379415             ", "#t8" "#a8"=%08xh, "#t9" "#a9"=%08xh) enter\n", \
    380416             pszOdinDebugChannel,             \
    381              a1,a2,a3));                      \
     417             a1,a2,a3,a4,a5,a6,a7,a8,a9));    \
     418    _heap_check();                            \
    382419    cRet   rc  = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9); \
     420    _heap_check();                            \
    383421    dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
    384422             pszOdinDebugChannel,             \
     
    399437             ", "#t8" "#a8"=%08xh, "#t9" "#a9"=%08xh) enter\n", \
    400438             pszOdinDebugChannel,             \
    401              a1,a2,a3));                      \
     439             a1,a2,a3,a4,a5,a6,a7,a8,a9));    \
     440    _heap_check();                            \
    402441    ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9); \
     442    _heap_check();                            \
    403443    dprintf(("%s: void "#cName"() leave\n",    \
    404444             pszOdinDebugChannel));           \
     
    415455  {                               \
    416456    unsigned short sel = RestoreOS2FS();  \
     457    dprintf(("%s: "#cRet" "#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) enter\n", \
     460             pszOdinDebugChannel,             \
     461             a1,a2,a3,a4,a5,a6,a7,a8,a9,a10));\
     462    _heap_check();                            \
     463    cRet   rc  = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10); \
     464    _heap_check();                            \
     465    dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
     466             pszOdinDebugChannel,             \
     467             rc));                            \
     468    SetFS(sel);                   \
     469    return rc;                    \
     470  }                               \
     471                                  \
     472  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)
     473
     474#define ODINPROCEDURE10(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10)  \
     475  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);  \
     476  void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10)    \
     477  {                               \
     478    unsigned short sel = RestoreOS2FS();  \
    417479    dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
    418480             ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh" \
     
    420482             pszOdinDebugChannel,             \
    421483             a1,a2,a3));                      \
    422     cRet   rc  = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10); \
    423     dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
    424              pszOdinDebugChannel,             \
    425              rc));                            \
    426     SetFS(sel);                   \
    427     return rc;                    \
    428   }                               \
    429                                   \
    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)
    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)  \
    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)    \
    435   {                               \
    436     unsigned short sel = RestoreOS2FS();  \
    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", \
    440              pszOdinDebugChannel,             \
    441              a1,a2,a3));                      \
     484    _heap_check();                            \
    442485    ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10); \
     486    _heap_check();                            \
    443487    dprintf(("%s: void "#cName"() leave\n",    \
    444488             pszOdinDebugChannel));           \
     
    455499  {                               \
    456500    unsigned short sel = RestoreOS2FS();  \
     501    dprintf(("%s: "#cRet" "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
     502             ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh"  \
     503             ", "#t8" "#a8"=%08xh, "#t9" "#a9"=%08xh, "#t10" "#a10"=%08xh, "#t11" "#a11"=%08xh) enter\n", \
     504             pszOdinDebugChannel,             \
     505             a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)); \
     506    _heap_check();                            \
     507    cRet   rc  = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11); \
     508    _heap_check();                            \
     509    dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
     510             pszOdinDebugChannel,             \
     511             rc));                            \
     512    SetFS(sel);                   \
     513    return rc;                    \
     514  }                               \
     515                                  \
     516  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)
     517
     518#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)  \
     519  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);  \
     520  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)    \
     521  {                               \
     522    unsigned short sel = RestoreOS2FS();  \
    457523    dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
    458524             ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh"  \
    459525             ", "#t8" "#a8"=%08xh, "#t9" "#a9"=%08xh, "#t10" "#a10"=%08xh, "#t11" "#a11"=%08xh) enter\n", \
    460526             pszOdinDebugChannel,             \
    461              a1,a2,a3));                      \
    462     cRet   rc  = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11); \
    463     dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
    464              pszOdinDebugChannel,             \
    465              rc));                            \
    466     SetFS(sel);                   \
    467     return rc;                    \
    468   }                               \
    469                                   \
    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)
    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)  \
    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   {                               \
    476     unsigned short sel = RestoreOS2FS();  \
    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", \
    480              pszOdinDebugChannel,             \
    481              a1,a2,a3));                      \
     527             a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)); \
     528    _heap_check();                            \
    482529    ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11); \
     530    _heap_check();                            \
    483531    dprintf(("%s: void "#cName"() leave\n",    \
    484532             pszOdinDebugChannel));           \
     
    495543  {                               \
    496544    unsigned short sel = RestoreOS2FS();  \
     545    dprintf(("%s: "#cRet" "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
     546             ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh"     \
     547             ", "#t8" "#a8"=%08xh, "#t9" "#a9"=%08xh, "#t10" "#a10"=%08xh, "#t11" "#a11"=%08xh" \
     548             ", "#t12" "#a12"=%08xh) enter\n", \
     549             pszOdinDebugChannel,             \
     550             a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12)); \
     551    _heap_check();                            \
     552    cRet   rc  = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12); \
     553    _heap_check();                            \
     554    dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
     555             pszOdinDebugChannel,             \
     556             rc));                            \
     557    SetFS(sel);                   \
     558    return rc;                    \
     559  }                               \
     560                                  \
     561  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)
     562
     563#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)  \
     564  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);  \
     565  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)    \
     566  {                               \
     567    unsigned short sel = RestoreOS2FS();  \
    497568    dprintf(("%s: void "#cName"("#t1" "#a1"=%08xh, "#t2" "#a2"=%08xh, "#t3" "#a3"=%08xh)" \
    498569             ", "#t4" "#a4"=%08xh, "#t5" "#a5"=%08xh, "#t6" "#a6"=%08xh, "#t7" "#a7"=%08xh"     \
     
    500571             ", "#t12" "#a12"=%08xh) enter\n", \
    501572             pszOdinDebugChannel,             \
    502              a1,a2,a3));                      \
    503     cRet   rc  = ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12); \
    504     dprintf(("%s: "#cRet" "#cName"() leave = %08xh\n", \
    505              pszOdinDebugChannel,             \
    506              rc));                            \
    507     SetFS(sel);                   \
    508     return rc;                    \
    509   }                               \
    510                                   \
    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)
    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)  \
    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)    \
    516   {                               \
    517     unsigned short sel = RestoreOS2FS();  \
    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", \
    522              pszOdinDebugChannel,             \
    523              a1,a2,a3));                      \
     573             a1,a2,a3,a4,a5,a6,a7,a8,a9,10,a11,a12));  \
     574    _heap_check();                            \
    524575    ODIN_##cName(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12); \
     576    _heap_check();                            \
    525577    dprintf(("%s: void "#cName"() leave\n",    \
    526578             pszOdinDebugChannel));           \
Note: See TracChangeset for help on using the changeset viewer.