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.

92 lines
2.3 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-1994 Microsoft Corporation
  9. //
  10. //--------------------------------------------------------------------------;
  11. //
  12. // debug.h
  13. //
  14. // Description:
  15. // This file contains definitions for DEBUG builds; all debugging
  16. // instructions are #define-d to nothing if DEBUG is not defined.
  17. //
  18. //
  19. //==========================================================================;
  20. #ifndef _INC_DEBUG
  21. #define _INC_DEBUG
  22. #ifdef __cplusplus
  23. extern "C"
  24. {
  25. #endif
  26. //
  27. //
  28. //
  29. //
  30. #ifdef DEBUG
  31. #define DEBUG_SECTION "Debug" // section name for
  32. #define DEBUG_MODULE_NAME "IMAADPCM" // key name and prefix for output
  33. #define DEBUG_MAX_LINE_LEN 255 // max line length (bytes!)
  34. #endif
  35. //
  36. // based code makes since only in win 16 (to try and keep stuff out of
  37. // [fixed] data segments, etc)...
  38. //
  39. #ifndef BCODE
  40. #ifdef WIN32
  41. #define BCODE
  42. #else
  43. #define BCODE _based(_segname("_CODE"))
  44. #endif
  45. #endif
  46. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  47. //
  48. //
  49. //
  50. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  51. #ifdef DEBUG
  52. BOOL WINAPI DbgEnable(BOOL fEnable);
  53. UINT WINAPI DbgGetLevel(void);
  54. UINT WINAPI DbgSetLevel(UINT uLevel);
  55. UINT WINAPI DbgInitialize(BOOL fEnable);
  56. void WINAPI _Assert( char * szFile, int iLine );
  57. void FAR CDECL dprintf(UINT uDbgLevel, LPSTR szFmt, ...);
  58. #define D(x) {x;}
  59. #define DPF dprintf
  60. #define DPI(sz) {static char BCODE ach[] = sz; OutputDebugStr(ach);}
  61. #define ASSERT(x) if( !(x) ) _Assert( __FILE__, __LINE__)
  62. #else
  63. #define DbgEnable(x) FALSE
  64. #define DbgGetLevel() 0
  65. #define DbgSetLevel(x) 0
  66. #define DbgInitialize(x) 0
  67. #ifdef _MSC_VER
  68. #pragma warning(disable:4002)
  69. #endif
  70. #define D(x)
  71. #define DPF()
  72. #define DPI(sz)
  73. #define ASSERT(x)
  74. #endif
  75. #ifdef __cplusplus
  76. }
  77. #endif
  78. #endif // _INC_DEBUG