]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Squash big fat black bug. Minor doc changes.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 11 Apr 2002 14:18:26 +0000 (14:18 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 11 Apr 2002 14:18:26 +0000 (14:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@5642 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 07105ce6c7c020f3b2540f5ef364396e54d0856a..e06dc5a80ab48601a3cfd8ae66030782022de267 100644 (file)
  *  which by macro expansion does the following:
  *  @begin{verbatim}
  *    #ifdef DEBUG
- *        if (!cond)
+ *        if (!(cond))
  *              issue error of class ExcDomain(n,dim)
  *    #else
  *        do nothing
  *  want to keep to this, but want to extend it a bit. In general, the
  *  structure is the same, i.e. you normally raise and exception by
  *  @begin{verbatim}
- *    if (!cond)
+ *    if (!(cond))
  *      throw ExcSomething();
  *  @end{verbatim}
  *  and catch it using the statement
  *  which is the same as explained above for the @p{Assert} expansion, requires
  *  some work if one would want to write it down each time:
  *  @begin{verbatim}
- *    if (!cond)
+ *    if (!(cond))
  *      {
  *        ExcSomething e(additional information);
  *        e.SetFields (__FILE__, __LINE__, __PRETTY_FUNCTION__,
@@ -602,7 +602,7 @@ namespace deal_II_exceptions
 #  else // HAVE_BUILTIN_EXPECT
 #    define AssertThrow(cond, exc)                                   \
       {                                                              \
-        if (__builtin_expect(!cond, false))                          \
+        if (__builtin_expect(!(cond), false))                        \
           deal_II_exceptions::internals::                            \
           issue_error_throw (__FILE__,                               \
                             __LINE__,                               \

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.