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.

80 lines
1.6 KiB

  1. //==========================================================================;
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright (c) 1992, 1993 Microsoft Corporation. All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11. //
  12. // debug.h
  13. //
  14. // Description:
  15. //
  16. //
  17. //
  18. //==========================================================================;
  19. #ifndef _INC_DEBUG
  20. #define _INC_DEBUG
  21. #ifdef __cplusplus
  22. extern "C"
  23. {
  24. #endif
  25. //
  26. //
  27. //
  28. //
  29. #define DEBUG_MODULE_NAME "MSMIXMGR" // key name and prefix for output
  30. #ifdef DEBUG
  31. #define DEBUG_SECTION "Debug" // section name for
  32. #define DEBUG_MAX_LINE_LEN 255 // max line length (bytes!)
  33. #endif
  34. //
  35. // based code makes since only in win 16 (to try and keep stuff out of
  36. // [fixed] data segments, etc)...
  37. //
  38. #ifndef BCODE
  39. #ifdef WIN32
  40. #define BCODE
  41. #else
  42. #define BCODE _based(_segname("_CODE"))
  43. #endif
  44. #endif
  45. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  46. //
  47. //
  48. //
  49. // #pragma message(REMIND("this is a reminder"))
  50. //
  51. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  52. #ifdef DEBUG
  53. #define D(x) {x;}
  54. #define DPF(_x_)
  55. #define DPI(sz) {static char BCODE ach[] = sz; OutputDebugStr(ach);}
  56. #else
  57. #define D(x)
  58. #define DPF(_x_)
  59. #define DPI(sz)
  60. #endif
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #endif // _INC_DEBUG