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.

34 lines
1.1 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright (c) 1994-1998 Microsoft Corporation **
  4. //*********************************************************************
  5. #ifndef _PHBKDEBUG
  6. #define _PHBKDEBUG
  7. //#ifdef __cplusplus
  8. //extern "C" {
  9. //#endif // __cplusplus
  10. void Dprintf(PCSTR pcsz, ...);
  11. //#ifdef __cplusplus
  12. //}
  13. //#endif // __cplusplus
  14. #ifdef DEBUG
  15. //#ifdef __cplusplus
  16. //extern "C" {
  17. //#endif // __cplusplus
  18. BOOL FAssertProc(PCSTR szFile, DWORD dwLine, PCSTR szMsg, DWORD dwFlags);
  19. void DebugSz(PCSTR psz);
  20. //#ifdef __cplusplus
  21. //}
  22. //#endif // __cplusplus
  23. #define AssertSzFlg(f, sz, dwFlg) ( (f) ? 0 : FAssertProc(__FILE__, __LINE__, sz, dwFlg) ? DebugBreak() : 1 )
  24. #define AssertSz(f, sz) AssertSzFlg(f, sz, 0)
  25. #define Assert(f) AssertSz((f), "!(" #f ")")
  26. #else
  27. #define DebugSz(x)
  28. #define AssertSzFlg(f, sz, dwFlg) f
  29. #define AssertSz(f, sz) f
  30. #define Assert(f) f
  31. #endif
  32. #endif //_PHBKDEBUG