From 3e62f507375b7cd6b8292333a67fc8633c523c68 Mon Sep 17 00:00:00 2001 From: Roelf-Jilling Date: Fri, 16 Nov 2018 14:40:50 +0100 Subject: [PATCH] Add macro block end comment on large #if blocks --- include/gsl/gsl_assert | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gsl/gsl_assert b/include/gsl/gsl_assert index 359f25e..84fb4d8 100644 --- a/include/gsl/gsl_assert +++ b/include/gsl/gsl_assert @@ -139,7 +139,7 @@ namespace details throw std::forward(exception); } -#endif +#endif // GSL_TERMINATE_ON_CONTRACT_VIOLATION } // namespace details } // namespace gsl @@ -160,7 +160,7 @@ namespace details #define GSL_CONTRACT_CHECK(type, cond) GSL_ASSUME(cond) -#endif +#endif // GSL_THROW_ON_CONTRACT_VIOLATION #define Expects(cond) GSL_CONTRACT_CHECK("Precondition", cond) #define Ensures(cond) GSL_CONTRACT_CHECK("Postcondition", cond)