From: Wolfgang Bangerth Date: Tue, 14 Mar 2006 18:30:57 +0000 (+0000) Subject: Stop backtrace in main(). X-Git-Tag: v8.0.0~12112 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e22eee6dfe5483e6251b65518f304944661c087d;p=dealii.git Stop backtrace in main(). git-svn-id: https://svn.dealii.org/trunk@12583 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/exceptions.cc b/deal.II/base/source/exceptions.cc index fe688670f1..ff6bd208ef 100644 --- a/deal.II/base/source/exceptions.cc +++ b/deal.II/base/source/exceptions.cc @@ -218,6 +218,10 @@ void ExceptionBase::print_stack_trace (std::ostream &out) const // then output what we have out << stacktrace_entry << std::endl; + + // stop if we're in main() + if (functionname == "main") + break; } }