]> https://gitweb.dealii.org/ - dealii.git/commitdiff
This NO_THROW branch in AssertThrow was quite bogus!
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 12 Oct 2000 07:01:32 +0000 (07:01 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 12 Oct 2000 07:01:32 +0000 (07:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@3411 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/exceptions.h

index 3ebde4735f20a152d5215f9d88b6f4a3e09ad0d5..d772042e51cb60bcc2ecdec97803fd69392240f0 100644 (file)
@@ -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
 
 /**

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.