Add some friendly messages to libcxx calls to abort().

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@186951 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2013-07-23 16:05:56 +00:00
parent 01fbfc2fa6
commit ed14a76beb
3 changed files with 13 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
#ifdef _WIN32
#include "support/win32/support.h"
#endif // _WIN32
#include <stdio.h>
_LIBCPP_BEGIN_NAMESPACE_STD
@@ -38,6 +39,7 @@ void throw_helper( const string& msg )
#ifndef _LIBCPP_NO_EXCEPTIONS
throw T( msg );
#else
printf("%s\n", msg.c_str());
abort();
#endif
}