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.

35 lines
929 B

  1. /*-----------------------------------------------------------------------------
  2. debug.h
  3. Declarations for debug features
  4. Copyright (C) 1996 Microsoft Corporation
  5. All rights reserved
  6. Authors:
  7. ChrisK Chris Kauffman
  8. Histroy:
  9. 7/22/96 ChrisK Cleaned and formatted
  10. -----------------------------------------------------------------------------*/
  11. #ifndef _PHBKDEBUG
  12. #define _PHBKDEBUG
  13. void Dprintf(LPCTSTR pcsz, ...);
  14. #ifdef DEBUG
  15. BOOL FAssertProc(LPCTSTR szFile, DWORD dwLine, LPCTSTR szMsg, DWORD dwFlags);
  16. void DebugSz(LPCTSTR psz);
  17. #define AssertSzFlg(f, sz, dwFlg) ( (f) ? 0 : FAssertProc(__FILE__, __LINE__, sz, dwFlg) ? DebugBreak() : 1 )
  18. #define AssertSz(f, sz) AssertSzFlg(f, sz, 0)
  19. #define Assert(f) AssertSz((f), "!(" #f ")")
  20. #else
  21. #define DebugSz(x)
  22. #define AssertSzFlg(f, sz, dwFlg)
  23. #define AssertSz(f, sz)
  24. #define Assert(f)
  25. #endif
  26. #endif //_PHBKDEBUG