Source code of Windows XP (NT5)
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.

47 lines
591 B

  1. /*++
  2. Copyright (c) 1998 Intel Corporation
  3. Module Name:
  4. debug.c
  5. Abstract:
  6. Debug library functions
  7. Revision History
  8. --*/
  9. #include "lib.h"
  10. /*
  11. * Declare runtime functions
  12. */
  13. /*
  14. *
  15. */
  16. //
  17. // Disable the warning about no exit for the implementation of BREAKPOINT that is
  18. // a while(TRUE) (some of them)
  19. //
  20. #pragma warning( disable : 4715 )
  21. INTN
  22. DbgAssert (
  23. IN CHAR8 *FileName,
  24. IN INTN LineNo,
  25. IN CHAR8 *Description
  26. )
  27. {
  28. DbgPrint (D_ERROR, "%EASSERT FAILED: %a(%d): %a%N\n", FileName, LineNo, Description);
  29. BREAKPOINT();
  30. return 0;
  31. }