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.

48 lines
1.1 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 1998 - 1999 Microsoft Corporation. All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------
  11. #ifndef _SAMPLEDEBUG_
  12. #define _SAMPLEDEBUG_
  13. #if (DBG == 1)
  14. #undef DEBUG
  15. #undef _DEBUG
  16. #define DEBUG 1
  17. #define _DEBUG 1
  18. #endif // DGB
  19. #if DEBUG
  20. STDAPI FnAssert( LPSTR lpstrExpr, LPSTR lpstrMsg, LPSTR lpstrFileName, UINT iLine );
  21. #undef Assert
  22. #undef AssertSz
  23. #undef Puts
  24. #undef TRACE
  25. #define Assert(a) { if (!(a)) FnAssert(#a, NULL, __FILE__, __LINE__); }
  26. #define AssertSz(a, b) { if (!(a)) FnAssert(#a, b, __FILE__, __LINE__); }
  27. #define Puts(s) OutputDebugStringA(s)
  28. #define TRACE(s) OutputDebugStringA(s)
  29. #else // !DEBUG
  30. #define Assert(a)
  31. #define AssertSz(a, b)
  32. #define Puts(s)
  33. #define TRACE(s)
  34. #endif // DEBUG
  35. #endif // _SAMPLEDEBUG_