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.

56 lines
1.3 KiB

  1. // $Header: G:/SwDev/WDM/Video/bt848/rcs/Capdebug.h 1.9 1998/05/07 15:23:25 tomz Exp $
  2. //==========================================================================;
  3. //
  4. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  5. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  6. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  7. // PURPOSE.
  8. //
  9. // Copyright (c) 1992 - 1996 Microsoft Corporation. All Rights Reserved.
  10. //
  11. //==========================================================================;
  12. #ifndef __CAPDEBUG_H
  13. #define __CAPDEBUG_H
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #include <stdio.h>
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #if DBG
  22. extern "C" void MyDebugPrint(long DebugPrintLevel, char * DebugMessage, ... );
  23. #define DebugOut(x) MyDebugPrint x
  24. #define TRACE_CALLS 0
  25. #else
  26. #define DebugOut(x)
  27. #define TRACE_CALLS 0
  28. #endif
  29. #define DUMP(v) DebugOut((0, "--- " #v " = %d\n", v));
  30. #define DUMPX(v) DebugOut((0, "--- " #v " = 0x%x\n", v));
  31. #if TRACE_CALLS
  32. class Trace {
  33. public:
  34. char *psz; // string to be printed
  35. Trace(char *pszFunc);
  36. ~Trace();
  37. };
  38. #else
  39. class Trace {
  40. public:
  41. Trace(char *pszFunc) {};
  42. ~Trace() {};
  43. };
  44. #endif
  45. #endif // __CAPDEBUG_H