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.

64 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. debug.c
  5. Abstract:
  6. Various helpful debugging functions
  7. Author:
  8. Based on code by Mike Tsang (MikeTs)
  9. Stephane Plante (Splante)
  10. Environment:
  11. User mode only
  12. Revision History:
  13. --*/
  14. #ifndef _DEBUG_H_
  15. #define _DEBUG_H_
  16. #ifdef DBG
  17. #define ENTER(x) DebugEnterProcedure x
  18. #define EXIT(x) DebugExitProcedure x
  19. #define INFO(x) DebugPrintProcedure x
  20. VOID
  21. DebugEnterProcedure(
  22. ULONG VerbosityLevel,
  23. PCCHAR Format,
  24. ...
  25. );
  26. VOID
  27. DebugExitProcedure(
  28. ULONG VerbosityLevel,
  29. PCCHAR Format,
  30. ...
  31. );
  32. VOID
  33. DebugPrintProcedure(
  34. ULONG VerbosityLevel,
  35. PCCHAR Format,
  36. ...
  37. );
  38. #else
  39. #define ENTER(x)
  40. #define EXIT(x)
  41. #define INFO(x)
  42. #endif
  43. #endif