From 5a408f7fd689423fd0368d1c02ebe236e8b39e5d Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 14 Mar 2006 18:30:57 +0000 Subject: [PATCH] Stop backtrace in main(). git-svn-id: https://svn.dealii.org/trunk@12583 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/exceptions.cc | 4 ++++ 1 file changed, 4 insertions(+) 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; } } -- 2.39.5