From c9cd75e0909d3ce14d7f358968fc79fa3517839d Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 9 Nov 2024 15:21:22 +0200 Subject: [PATCH] Update documentation --- doc/assert.adoc | 6 ++++++ doc/changes.adoc | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/doc/assert.adoc b/doc/assert.adoc index 4628e07..e050488 100644 --- a/doc/assert.adoc +++ b/doc/assert.adoc @@ -46,6 +46,9 @@ This is true regardless of whether `NDEBUG` is defined. ``` namespace boost { +#if defined(BOOST_ASSERT_HANDLER_IS_NORETURN) + BOOST_NORETURN +#endif void assertion_failed(char const * expr, char const * function, char const * file, long line); } @@ -87,6 +90,9 @@ This is true regardless of whether `NDEBUG` is defined. ``` namespace boost { +#if defined(BOOST_ASSERT_HANDLER_IS_NORETURN) + BOOST_NORETURN +#endif void assertion_failed_msg(char const * expr, char const * msg, char const * function, char const * file, long line); } diff --git a/doc/changes.adoc b/doc/changes.adoc index 782c37b..b7d6f5b 100644 --- a/doc/changes.adoc +++ b/doc/changes.adoc @@ -10,6 +10,11 @@ http://www.boost.org/LICENSE_1_0.txt :toc-title: :idprefix: +## Changes in 1.88.0 + +* When `BOOST_ASSERT_HANDLER_IS_NORETURN` is defined, `boost::assertion_failed` + and `boost::assertion_failed_msg` are declared as `BOOST_NORETURN`. + ## Changes in 1.79.0 * `source_location().file_name()` and `source_location().function_name()`