]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Further change the way AssertThrow works, as the previous approach did
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 12 Oct 2000 07:32:36 +0000 (07:32 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 12 Oct 2000 07:32:36 +0000 (07:32 +0000)
not work as hoped for.

git-svn-id: https://svn.dealii.org/trunk@3415 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 9d16eb658239c680e8b50ef602fb6ab3ae94cfb6..6d23cdbd0ff5ffdc91321bcb0a42e740141284b6 100644 (file)
@@ -453,8 +453,7 @@ void __IssueError_Throw (const char *file,
  * On some systems (we only know of DEC Alpha systems running under
  * OSF1 or Linux), the compiler fails to compile the @p{AssertThrow}
  * macro properly, yielding an internal compiler error. We detect this
- * at configure time. For these cases, the @p{AssertThrow} macro is
- * implemented like the @p{Assert} macro in debug mode, i.e. it aborts
+ * at configure time. For these cases, the @p{AssertThrow} macro aborts
  * the program if the assertion is not satisfied. This, however,
  * happens in debug and optimized mode likewise.  Note that in these
  * cases, the meaning of a program changes. In particular, one cannot
@@ -478,9 +477,7 @@ void __IssueError_Throw (const char *file,
 #define AssertThrow(cond, exc)                                    \
   {                                                               \
     if (!(cond))                                                  \
-      __IssueError_Assert (__FILE__,                              \
-                          __LINE__,                              \
-                          __PRETTY_FUNCTION__, #cond, #exc, exc);\
+      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.