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.

47 lines
808 B

  1. /*++
  2. Copyright (c) 1994-2000 Microsoft Corporation
  3. Module Name: debug.h
  4. Abstract: Debug defines, macros, prototypes
  5. Author: Richard L Firth (rfirth) 20-May-1994
  6. Revision History:
  7. 20-May-1994 rfirth -- Created
  8. 30-Apr-97 MohsinA -- Updating for NT50.
  9. macros from "../common2/mdebug.h"
  10. --*/
  11. #if !defined(DEBUG)
  12. #if DBG
  13. #define DEBUG
  14. #endif
  15. #endif
  16. #ifdef DBG
  17. extern int Debugging;
  18. extern const char* if_type$(ulong);
  19. extern const char* entity$(ulong);
  20. extern int MyTrace;
  21. #define DEBUG_PRINT(S) if( Debugging ){ printf S ; }else;
  22. #define TRACE_PRINT(S) if( MyTrace ){ printf S; }else{}
  23. #else
  24. #define DEBUG_PRINT(S) /* nothing */
  25. #define TRACE_PRINT(S) /* nothing */
  26. #define if_type$(x) /* nothing */
  27. #define entity$(x) /* nothing */
  28. #endif