From: Matthias Maier Date: Sun, 21 Jan 2024 20:53:02 +0000 (-0600) Subject: base/exceptions.h: remove DEAL_II_CXX23_ASSUME from Assert macro X-Git-Tag: relicensing~122^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83701b267a4aac2bb589e67e7325608aa5c0f66e;p=dealii.git base/exceptions.h: remove DEAL_II_CXX23_ASSUME from Assert macro --- diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index ea95ca2d85..740bf3c3a2 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -1637,7 +1637,11 @@ namespace deal_II_exceptions # endif /*ifdef KOKKOS_ACTIVE_EXECUTION_MEMORY_SPACE_HOST*/ # endif /*KOKKOS_ACTIVE_EXECUTION_MEMORY_SPACE_HOST*/ #else /*ifdef DEBUG*/ -# define Assert(cond, exc) DEAL_II_CXX23_ASSUME(cond) +# define Assert(cond, exc) \ + do \ + { \ + } \ + while (false) #endif /*ifdef DEBUG*/ @@ -1689,7 +1693,11 @@ namespace deal_II_exceptions while (false) # endif /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/ #else -# define AssertNothrow(cond, exc) DEAL_II_CXX23_ASSUME(cond) +# define AssertNothrow(cond, exc) \ + do \ + { \ + } \ + while (false) #endif /**