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
715 B

  1. #pragma once
  2. #ifdef DBG
  3. // Parameters:
  4. // (BOOL bCond, LPCTSTR cszFmt, ...)
  5. // Semantics:
  6. // Condition bCond is expected to be TRUE. If this
  7. // doesn't happen, message is displayed and program
  8. // is exited.
  9. // Usage:
  10. // _Assert((
  11. // errCode == ERROR_SUCCESS,
  12. // "Err code %d returned from call.\n",
  13. // GetLastError()
  14. // ));
  15. // Output:
  16. //
  17. #define _Assert(params) _Asrt params;
  18. #else
  19. // No code is generated for asserts in fre builds
  20. #define _Assert
  21. #endif
  22. VOID _Asrt(BOOL bCond,
  23. LPCTSTR cszFmt,
  24. ...);
  25. DWORD _Err(DWORD dwErrCode,
  26. LPCTSTR cszFmt,
  27. ...);
  28. DWORD _Wrn(DWORD dwWarnCode,
  29. LPCTSTR cszFmt,
  30. ...);