]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Stop backtrace in main().
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 14 Mar 2006 18:30:57 +0000 (18:30 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 14 Mar 2006 18:30:57 +0000 (18:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@12583 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/exceptions.cc

index fe688670f13b7ba2ffa42468a41aba0bec335bf4..ff6bd208ef890aae6c2ab7b2ad9eec286c72b9a5 100644 (file)
@@ -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;
      }
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.