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.

20 lines
510 B

  1. // throw -- terminate on thrown exception REPLACEABLE
  2. #include <cstdio>
  3. #include <cstdlib>
  4. #include <exception>
  5. _STD_BEGIN
  6. _CRTIMP2 void __cdecl _Throw(const exception& ex)
  7. { // report error and die
  8. const char *s2 = ex.what();
  9. fputs("exception: ", _cpp_stderr);
  10. fputs(s2 != 0 ? s2 : "unknown", _cpp_stderr);
  11. fputs("\n", _cpp_stderr);
  12. abort();
  13. }
  14. _STD_END
  15. /*
  16. * Copyright (c) 1992-2001 by P.J. Plauger. ALL RIGHTS RESERVED.
  17. * Consult your license regarding permissions and restrictions.
  18. V3.10:0009 */