From 83701b267a4aac2bb589e67e7325608aa5c0f66e Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sun, 21 Jan 2024 14:53:02 -0600 Subject: [PATCH] base/exceptions.h: remove DEAL_II_CXX23_ASSUME from Assert macro --- include/deal.II/base/exceptions.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 /** -- 2.39.5