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.

63 lines
1.4 KiB

  1. // Copyright (c) 1994 Microsoft Corporation
  2. //==========================================================================;
  3. //
  4. // debug.h
  5. //
  6. // Description:
  7. //
  8. //
  9. // Notes:
  10. //
  11. // History:
  12. // 11/23/92 cjp [curtisp]
  13. //
  14. //==========================================================================;
  15. #ifndef _INC_DEBUG
  16. #define _INC_DEBUG
  17. #ifdef __cplusplus
  18. extern "C"
  19. {
  20. #endif
  21. //
  22. //
  23. //
  24. //
  25. //
  26. #define DEBUG_SECTION "Debug" // section name for
  27. #define DEBUG_MODULE_NAME "MSADPCM" // key name and prefix for output
  28. #define DEBUG_MAX_LINE_LEN 255 // max line length (bytes)
  29. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  30. //
  31. //
  32. //
  33. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  34. #ifdef DEBUG
  35. BOOL WINAPI DbgEnable(BOOL fEnable);
  36. UINT WINAPI DbgSetLevel(UINT uLevel);
  37. UINT WINAPI DbgInitialize(BOOL fEnable);
  38. void WINAPI _Assert( char * szFile, int iLine );
  39. void FAR CDECL dprintf(UINT uDbgLevel, LPSTR szFmt, ...);
  40. #define DPF dprintf
  41. #define ASSERT(x) if( !(x) ) _Assert( __FILE__, __LINE__)
  42. #else
  43. #define DbgEnable(x) FALSE
  44. #define DbgSetLevel(x) 0
  45. #define DbgInitialize(x) 0
  46. #pragma warning(disable:4002)
  47. #define DPF()
  48. #define ASSERT(x)
  49. #endif
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif // _INC_DEBUG