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.

30 lines
976 B

  1. //
  2. // debug.h
  3. //
  4. // Copyright (c) 1997-1998 Microsoft Corporation. All rights reserved.
  5. //
  6. // Note:
  7. //
  8. #ifndef DEBUG_H
  9. #define DEBUG_H
  10. #include <windows.h>
  11. #define DM_DEBUG_CRITICAL 1 // Used to include critical messages
  12. #define DM_DEBUG_NON_CRITICAL 2 // Used to include level 1 plus important non-critical messages
  13. #define DM_DEBUG_STATUS 3 // Used to include level 1 and level 2 plus status\state messages
  14. #define DM_DEBUG_FUNC_FLOW 4 // Used to include level 1, level 2 and level 3 plus function flow messages
  15. #define DM_DEBUG_ALL 5 // Used to include all debug messages
  16. #ifdef DBG
  17. extern void DebugInit(void);
  18. extern void DebugTrace(int iDebugLevel, LPSTR pstrFormat, ...);
  19. extern void DebugAssert(LPSTR szExp, LPSTR szFile, ULONG ulLine);
  20. #define Trace DebugTrace
  21. #define assert(exp) (void)( (exp) || (DebugAssert(#exp, __FILE__, __LINE__), 0) )
  22. #else
  23. #define Trace
  24. #define assert(exp) ((void)0)
  25. #endif
  26. #endif // #ifndef DEBUG_H