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.

30 lines
785 B

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