home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winui / comctl / reitp / dbugit.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  4.2 KB  |  173 lines

  1. /*
  2.  *    DBUGIT.H
  3.  *    
  4.  *    Debug Support Routines
  5.  */
  6.  
  7.  
  8. #ifndef _DBUGIT_
  9. #define _DBUGIT_
  10.  
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif /* __cplusplus */
  14.  
  15. /*
  16.  *    "Normal" assertion checking.  Provided for compatibility with
  17.  *    imported code.
  18.  *
  19.  *        Assert(a)        Displays a message indicating the file and line number
  20.  *                        of this Assert() if a == 0.
  21.  *        AssertSz(a,b)    As Assert(); also displays the message b (which should
  22.  *                        be a string literal.)
  23.  *        SideAssert(a)    As Assert(); the expression a is evaluated even if
  24.  *                        asserts are disabled.
  25.  */
  26. #undef AssertSz
  27. #undef Assert
  28.  
  29. #define    ASSERTDATA
  30.  
  31. #define AssertSz(a,b)
  32. #define Assert(a)
  33. #define SideAssert(a)    (a)
  34.  
  35.  
  36.  
  37. #define NYI(a)            if (1) { \
  38.                             MessageBoxA(NULL, "Not Yet Implemented: "##a, "Microsoft Mail", MB_ICONINFORMATION|MB_OK|MB_TASKMODAL); \
  39.                         } else
  40.  
  41. #if 0
  42. /*
  43.  *    Tracing Access Group.  Trace points
  44.  *    and asserts are divided into groups sharing a single TAG.
  45.  *    The user interface and this API both provide ways of
  46.  *    enabling or disabling (at run time) a TAG group.
  47.  *
  48.  */
  49. typedef    int         TAG;
  50.  
  51. #define tagNull    ((TAG) 0)
  52.  
  53. /*
  54.  *    TraceTags
  55.  */
  56.  
  57. // System related
  58. #define tagCOM                ((TAG) 1)
  59. #define tagDISK                ((TAG) 2)
  60. #define tagERROR            ((TAG) 3)
  61. #define tagErrDbgBrk        ((TAG) 4)
  62.  
  63.  
  64. // Memory
  65.  
  66. // VLB
  67. #define tagLbx                ((TAG) 10)
  68. #define tagLbxRoutines        ((TAG) 11)
  69. #define tagLbxThumbing           ((TAG) 12)
  70. #define tagLbxOtherRoutines    ((TAG) 13)
  71. #define tagLbxStore               ((TAG) 14)
  72. #define tagLbxFixItem           ((TAG) 15)
  73. #define tagLbxRender           ((TAG) 16)
  74. #define tagLbxEventRoutines    ((TAG) 17)
  75. #define tagLbxNotify           ((TAG) 18)
  76. #define tagLbxDragDrop           ((TAG) 19)
  77. #define tagLbxWndProc           ((TAG) 20)
  78. #define tagLbxError            ((TAG) 73)
  79.  
  80. // MAPID
  81. #define tagMapidlg            ((TAG) 21)
  82. #define tagAB                ((TAG) 22)
  83. #define tagDetails            ((TAG) 23)
  84. #define tagABVlbCbc            ((TAG) 24)
  85. #define tagTripole            ((TAG) 25)
  86. #define tagTripoleStub        ((TAG) 26)
  87. #define tagMailExt            ((TAG) 27)
  88. #define tagMemVerbose        ((TAG) 28)
  89. #define tagCapHelp            ((TAG) 72)
  90. #define tagToolbar            ((TAG) 79)
  91.  
  92. // MAPIN
  93. #define tagNoteLaunchDebug    ((TAG) 29)
  94. #define tagMapiNote            ((TAG) 30)
  95. #define tagNoteDlg            ((TAG) 31)
  96. #define tagNoteCmd            ((TAG) 32)
  97. #define tagNoteOle            ((TAG) 33)
  98. #define tagPrint            ((TAG) 34)
  99. #define tagFileAttach        ((TAG) 35)
  100. #define tagFileAttachStub    ((TAG) 36)
  101. #define tagCharFormat        ((TAG) 37)
  102. #define tagAttach            ((TAG) 38)
  103. #define tagStmILB            ((TAG) 39)
  104. #define tagSaveAs            ((TAG) 40)
  105. #define tagMsgAttach        ((TAG) 41)
  106. #define tagMsgAttachStub    ((TAG) 42)
  107. #define tagAttachStg        ((TAG) 43)
  108. #define tagSpell            ((TAG) 44)
  109. #define tagSpellV            ((TAG) 45)
  110. #define tagRTFSync            ((TAG) 46)
  111. #define tagEditOnlyText        ((TAG) 47)
  112. #define tagRTFComp            ((TAG) 48)
  113. #define tagMCacheTrace        ((TAG) 49)
  114. #define tagMCacheData        ((TAG) 50)
  115. #define tagFreeDoc            ((TAG) 51)
  116. #define tagFDSite            ((TAG) 52)
  117. #define tagNoteDataObj        ((TAG) 53)
  118. #define tagReplyForward        ((TAG) 54)
  119.  
  120. // MAPIN - DBCS related
  121. #define tagDBCS                ((TAG) 55)
  122. #define tagFEToolbar        ((TAG) 56)
  123. #define tagIME                ((TAG) 57)
  124.  
  125. // MLVIEW
  126. #define tagMailView            ((TAG) 58)
  127. #define tagMailVD            ((TAG) 59)
  128. #define tagMailVDPaint        ((TAG) 60)
  129. #define tagMlvbr            ((TAG) 61)
  130. #define tagFcext            ((TAG) 62)
  131. #define tagFcextRefc        ((TAG) 63)
  132. #define tagHmt                ((TAG) 64)
  133. #define tagTmt                ((TAG) 65)
  134. #define tagTmtn                ((TAG) 66)
  135. #define tagDragDrop            ((TAG) 67)
  136. #define tagSRestrictions    ((TAG) 68)
  137. #define tagMsmail            ((TAG) 69)
  138. #define tagFormCache        ((TAG) 83)
  139. #define tagConversation        ((TAG) 84)    
  140.  
  141. // MLFIND
  142. #define tagFinder            ((TAG) 70)
  143. #define tagCreateInIPM        ((TAG) 71)
  144.  
  145. // Debugging
  146. #define tagPeterDur            ((TAG) 74)
  147. #define tagForms            ((TAG) 75)
  148. #define tagCentral            ((TAG) 76)
  149. #define tagMl3ext            ((TAG) 77)
  150. #define tagEricWong            ((TAG) 78)
  151. #define tagWmsuiRef            ((TAG) 80)
  152. #define tagSession            ((TAG) 81)
  153. #define tagDateTime            ((TAG) 82)
  154.  
  155. // Other
  156. #define tagUserMin            ((TAG) 85)
  157.  
  158. #define tagMax                ((TAG) 1024)
  159. #endif // 0
  160.  
  161. #define TraceTag    ;/##/
  162. #define TraceString(_sz)
  163. #define TraceError(_sz, _sc)
  164. #define TraceTagString(_tag, _sz)
  165.  
  166. VOID WINAPI    DebugBreak2(VOID);
  167.  
  168. #ifdef __cplusplus
  169. }
  170. #endif  /* __cplusplus */
  171.  
  172. #endif /* !_DBUGIT_ */
  173.