]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add some comments clarifying preprocessor blocks.
authorDavid Wells <wellsd2@rpi.edu>
Sun, 8 Apr 2018 21:35:16 +0000 (17:35 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Mon, 9 Apr 2018 12:27:39 +0000 (08:27 -0400)
include/deal.II/base/exceptions.h

index 3ded03444ec41e4ad0229dbc09e1763d96da31aa..55f4c0dfb71ad267d0e5f49f0c70010edcc05f43 100644 (file)
@@ -1117,7 +1117,7 @@ namespace deal_II_exceptions
         ::dealii::deal_II_exceptions::internals::abort_on_exception,           \
         __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);            \
 }
-#  else
+#  else /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/
 #    define Assert(cond, exc)                                                  \
 {                                                                              \
   if (!(cond))                                                                 \
@@ -1125,7 +1125,7 @@ namespace deal_II_exceptions
         ::dealii::deal_II_exceptions::internals::abort_on_exception,           \
         __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);            \
 }
-#  endif
+#  endif /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/
 #else
 #define Assert(cond, exc)                                                      \
   {}
@@ -1157,7 +1157,7 @@ namespace deal_II_exceptions
         ::dealii::deal_II_exceptions::internals::abort_nothrow_on_exception,   \
         __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);            \
 }
-#  else
+#  else /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/
 #    define AssertNothrow(cond, exc)                                           \
 {                                                                              \
   if (!(cond))                                                                 \
@@ -1165,7 +1165,7 @@ namespace deal_II_exceptions
         ::dealii::deal_II_exceptions::internals::abort_nothrow_on_exception,   \
         __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);            \
 }
-#  endif
+#  endif /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/
 #else
 #define AssertNothrow(cond, exc)                                               \
   {}

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.