From: Wolfgang Bangerth Date: Thu, 12 Oct 2000 07:01:32 +0000 (+0000) Subject: This NO_THROW branch in AssertThrow was quite bogus! X-Git-Tag: v8.0.0~20021 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e6d80180048de8b1b13776e46407d77b6aac5b8;p=dealii.git This NO_THROW branch in AssertThrow was quite bogus! git-svn-id: https://svn.dealii.org/trunk@3411 0785d39b-7218-0410-832d-ea1e28bc413d --- 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 /**