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

  1. /*
  2. **++
  3. **
  4. ** Copyright (c) 2002 Microsoft Corporation
  5. **
  6. **
  7. ** Module Name:
  8. **
  9. ** assert.h
  10. **
  11. **
  12. ** Abstract:
  13. **
  14. ** Defines my assert function since I can't use the built-in one
  15. **
  16. ** Author:
  17. **
  18. ** Reuven Lax [reuvenl] 04-June-2002
  19. **
  20. **
  21. ** Revision History:
  22. **
  23. **--
  24. */
  25. #include "stdafx.h"
  26. #include "sassert.h"
  27. // really stupid assertion function...
  28. void FailAssertion(const char* fileName, unsigned int lineNumber, const char* condition)
  29. {
  30. fprintf(stderr, "Assertion failure: %s\nFile: %s\nLine: %u\n", condition, fileName, lineNumber);
  31. ::DebugBreak();
  32. }