Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.9 KiB

  1. /* DrWatson.h - global info for Dr. Watson */
  2. enum {
  3. eClu, eDeb, eDis, eErr, eInf, eLin, eLoc, eMod,
  4. ePar, eReg, eSum, eSeg, eSou, eSta, eTas, eTim,
  5. e32b
  6. };
  7. #define bClu (1L << eClu)
  8. #define bDeb (1L << eDeb)
  9. #define bDis (1L << eDis)
  10. #define bErr (1L << eErr)
  11. #define bInf (1L << eInf)
  12. #define bLin (1L << eLin)
  13. #define bLoc (1L << eLoc)
  14. #define bMod (1L << eMod)
  15. #define bPar (1L << ePar)
  16. #define bReg (1L << eReg)
  17. #define bSum (1L << eSum)
  18. #define bSeg (1L << eSeg)
  19. #define bSou (1L << eSou)
  20. #define bSta (1L << eSta)
  21. #define bTas (1L << eTas)
  22. #define bTim (1L << eTim)
  23. #define b32b (1L << e32b)
  24. #define flag(b) (((char *)&ddFlag)[b >> 3] & 1 << (b & 7))
  25. #define SetFlag(b) ((char *)&ddFlag)[b >> 3] |= 1 << (b&7)
  26. #define ClrFlag(b) ((char *)&ddFlag)[b >> 3] &= ~(1 << (b&7))
  27. #define noClues flag(eClu) /* Clues dialog box */
  28. #define noDebStr flag(eDeb) /* OutputDebugString trapping */
  29. #define noDisasm flag(eDis) /* Simple disassembly */
  30. #define noErr flag(eErr) /* Error logging */
  31. #define noInfo flag(eInf) /* System info */
  32. #define noLine flag(eLin) /* Lookup line# in SYM file */
  33. #define noLocal flag(eLoc) /* Local vars on stack dump */
  34. #define noModules flag(eMod) /* Module dump */
  35. #define noParam flag(ePar) /* Parameter error logging */
  36. #define noReg flag(eReg) /* Register dump */
  37. #define noSummary flag(eSum) /* 3 line summary */
  38. #define noSeg flag(eSeg) /* not visible to users, but available */
  39. #define noSound flag(eSou) /* But I _like_ the sound effects! */
  40. #define noStack flag(eSta) /* Stack trace */
  41. #define noTasks flag(eTas) /* Task dump */
  42. #define noTime flag(eTim) /* Time start/stop */
  43. #define noReg32 flag(e32b) /* 32 bit register dump */
  44. #define DefFlag (bDeb | bDis | bErr | bMod | bLin | bLoc | bPar | bSou)
  45. extern unsigned long ddFlag;