Leaked source code of windows server 2003
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.

68 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1990,91 Microsoft Corporation
  3. Module Name:
  4. RapDebug.h
  5. Abstract:
  6. This include file defines Rap's debug stuff.
  7. Author:
  8. John Rogers (JohnRo) 29-Apr-1991
  9. Revision History:
  10. 29-Apr-1991 JohnRo
  11. Created (copied stuff from LarryO's rdr/debug.h).
  12. 29-May-1991 JohnRo
  13. Added RapTotalSize debug flag.
  14. 11-Jul-1991 JohnRo
  15. Added support for RapStructureAlignment() and RapParmNumDescriptor().
  16. --*/
  17. #ifndef _RAPDEBUG_
  18. #define _RAPDEBUG_
  19. #include <windef.h> // DWORD, FALSE, TRUE.
  20. // Debug trace level bits:
  21. // RapConvertSingleEntry:
  22. #define RAP_DEBUG_CONVERT 0x00000001
  23. // RapParmNumDescriptor:
  24. #define RAP_DEBUG_PARMNUM 0x00000080
  25. // RapStructureAlignment:
  26. #define RAP_DEBUG_STRUCALG 0x00000100
  27. // RapTotalSize:
  28. #define RAP_DEBUG_TOTALSIZ 0x00001000
  29. #define RAP_DEBUG_ALL 0xFFFFFFFF
  30. #if DBG
  31. extern DWORD RappTrace;
  32. #define DEBUG if (TRUE)
  33. #define IF_DEBUG(Function) if (RappTrace & RAP_DEBUG_ ## Function)
  34. #else
  35. #define DEBUG if (FALSE)
  36. #define IF_DEBUG(Function) if (FALSE)
  37. #endif // DBG
  38. #endif // _RAPDEBUG_