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.

89 lines
1.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: debug.c
  7. //
  8. // Contents: Debugging support functions
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // Note: This file is not compiled for retail builds
  15. //
  16. // History: 4-29-93 RichardW Created
  17. //
  18. //----------------------------------------------------------------------------
  19. #include "moveme.h"
  20. #define ANSI
  21. #include <stdarg.h>
  22. #if DBG // NOTE: This file not compiled for retail builds
  23. DEFINE_DEBUG2(MoveMe);
  24. DEBUG_KEY MoveMeDebugKeys[] = { {DEB_ERROR, "Error"},
  25. {DEB_WARN, "Warning"},
  26. {DEB_TRACE, "Trace"},
  27. {DEB_TRACE_UI, "UI"},
  28. {0, NULL},
  29. };
  30. // Debugging support functions.
  31. // These two functions do not exist in Non-Debug builds. They are wrappers
  32. // to the commnot functions (maybe I should get rid of that as well...)
  33. // that echo the message to a log file.
  34. //+---------------------------------------------------------------------------
  35. //
  36. // Function: InitDebugSupport
  37. //
  38. // Synopsis: Initializes debugging support for the SPMgr
  39. //
  40. // Effects:
  41. //
  42. // Arguments: (none)
  43. //
  44. // Requires:
  45. //
  46. // Returns:
  47. //
  48. // Signals:
  49. //
  50. // Modifies:
  51. //
  52. // Algorithm:
  53. //
  54. // History: 4-29-93 RichardW Created
  55. //
  56. // Notes:
  57. //
  58. //----------------------------------------------------------------------------
  59. void
  60. InitDebugSupport(void)
  61. {
  62. MoveMeInitDebug(MoveMeDebugKeys);
  63. }
  64. #else // DBG
  65. #pragma warning(disable:4206) // Disable the empty transation unit
  66. // warning/error
  67. #endif // NOTE: This file not compiled for retail builds