Windows NT 4.0 source code leak
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.

62 lines
1.3 KiB

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