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.

42 lines
704 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 int MyTrace;
  19. #define DEBUG_PRINT(S) if( Debugging ){ printf S ; }else;
  20. #define TRACE_PRINT(S) if( MyTrace ){ printf S; }else{}
  21. #else
  22. #define DEBUG_PRINT(S) /* nothing */
  23. #define TRACE_PRINT(S) /* nothing */
  24. #endif