From 7e6d80180048de8b1b13776e46407d77b6aac5b8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 12 Oct 2000 07:01:32 +0000 Subject: [PATCH] This NO_THROW branch in AssertThrow was quite bogus! git-svn-id: https://svn.dealii.org/trunk@3411 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/exceptions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/base/include/base/exceptions.h b/deal.II/base/include/base/exceptions.h index 3ebde4735f..d772042e51 100644 --- a/deal.II/base/include/base/exceptions.h +++ b/deal.II/base/include/base/exceptions.h @@ -415,7 +415,7 @@ void __IssueError_Throw (const char *file, /** * This is the main routine in the exception mechanism for debug mode - * error checking. It assert that a certain condition is fulfilled, + * error checking. It asserts that a certain condition is fulfilled, * otherwise issues an error and aborts the program. * * See the @p{ExceptionBase} class for more information. @@ -463,7 +463,7 @@ void __IssueError_Throw (const char *file, } #else #define AssertThrow(cond, exc) \ - { abort(); } + { if (!(cond)) abort(); } #endif /** -- 2.39.5