58 bool& loc_enableStackTrace()
60 static bool static_enableStackTrace =
61 #ifdef HAVE_TEUCHOS_DEFAULT_STACKTRACE
67 return static_enableStackTrace;
89 break_on_me = errorMsg.length();
105 loc_enableStackTrace() = enableStrackTrace;
111 return loc_enableStackTrace();
115 std::ostringstream omsg;
116 if (GlobalMPISession::getNProc() > 1) {
117 omsg <<
"p="<<GlobalMPISession::getRank()<<
": ";
120 std::cerr << omsg.str();
TEUCHOSCORE_LIB_DLL_EXPORT void TestForException_setEnableStacktrace(bool enableStrackTrace)
Set at runtime if stacktracing functionality is enabled when * exceptions are thrown.
TEUCHOSCORE_LIB_DLL_EXPORT[[noreturn]] void TestForTermination_terminate(const std::string &msg)
Prints the message to std::cerr and calls std::terminate.
TEUCHOSCORE_LIB_DLL_EXPORT int TestForException_getThrowNumber()
Increment the throw number.
TEUCHOSCORE_LIB_DLL_EXPORT void TestForException_incrThrowNumber()
Increment the throw number.
TEUCHOSCORE_LIB_DLL_EXPORT void TestForException_break(const std::string &msg)
The only purpose for this function is to set a breakpoint.
A MPI utilities class, providing methods for initializing, finalizing, and querying the global MPI se...
Standard test and throw macros.
TEUCHOSCORE_LIB_DLL_EXPORT bool TestForException_getEnableStacktrace()
Get at runtime if stacktracing functionality is enabled when exceptions are thrown.