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.

64 lines
1.1 KiB

  1. /*******************************************************************/
  2. /* Copyright(c) 1992 Microsoft Corporation */
  3. /*******************************************************************/
  4. //***
  5. //
  6. // Filename: debug.h
  7. //
  8. // Description: This module debug definitions for
  9. // the supervisor module.
  10. //
  11. // Author: Narendra Gidwani (nareng) May 22, 1992.
  12. //
  13. // Revision History:
  14. //
  15. //***
  16. #ifndef _DEBUG_
  17. #define _DEBUG_
  18. #ifdef DBG
  19. VOID
  20. DbgUserBreakPoint(VOID);
  21. #define DEBUG_INITIALIZATION 0x00000001
  22. #define DEBUG_TERMINATION 0x00000002
  23. #define DEBUG_FSM 0x00000004
  24. #define DEBUG_TIMER 0x00000008
  25. extern DWORD AfpDebug;
  26. //#define DEBUG if ( TRUE )
  27. // #define IF_DEBUG(flag) if (SDebug & (DEBUG_ ## flag))
  28. VOID
  29. AfpPrintf (
  30. char *Format,
  31. ...
  32. );
  33. #define AFP_PRINT(args) DbgPrint args
  34. VOID
  35. AfpAssert(
  36. IN PVOID FailedAssertion,
  37. IN PVOID FileName,
  38. IN ULONG LineNumber
  39. );
  40. #define AFP_ASSERT(exp) if (!(exp)) AfpAssert( #exp, __FILE__, __LINE__ )
  41. #else
  42. #define AFP_PRINT(args)
  43. #define AFP_ASSERT(exp)
  44. #endif
  45. #endif // ndef _DEBUG_
  46.