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.

32 lines
856 B

  1. /****************************************************************************
  2. *
  3. * debug.h
  4. *
  5. * Microsoft Confidential
  6. * Copyright (c) 1998-1999 Microsoft Corporation
  7. * All rights reserved
  8. *
  9. * Debug support
  10. *
  11. * 09/02/99 quintinb Created Header
  12. *
  13. ***************************************************************************/
  14. #ifndef _PHBKDEBUG
  15. #define _PHBKDEBUG
  16. void Dprintf(LPCSTR pcsz, ...);
  17. BOOL FAssertProc(LPCSTR szFile, DWORD dwLine, LPCSTR szMsg, DWORD dwFlags);
  18. void DebugSz(LPCSTR psz);
  19. #ifdef _DEBUG
  20. #define AssertSzFlg(f, sz, dwFlg) ( (f) ? 0 : FAssertProc(__FILE__, __LINE__, sz, dwFlg) ? DebugBreak() : 1 )
  21. #define AssertSz(f, sz) AssertSzFlg(f, sz, 0)
  22. #define Assert(f) AssertSz((f), "!(" #f ")")
  23. #else
  24. #define AssertSzFlg(f, sz, dwFlg)
  25. #define AssertSz(f, sz)
  26. #define Assert(f)
  27. #endif
  28. #endif //_PHBKDEBUG