From e3fa10ee88f39e6699329635d98d877d575e9b5b Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 3 Aug 2023 17:35:05 -0400 Subject: [PATCH] add deprecation note to `lammps_config_has_exceptions()` function --- src/library.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/library.cpp b/src/library.cpp index 1f4117a489..0d8711c520 100644 --- a/src/library.cpp +++ b/src/library.cpp @@ -5468,6 +5468,13 @@ int lammps_config_has_ffmpeg_support() { /** Check whether LAMMPS errors will throw C++ exceptions. * \verbatim embed:rst + +.. deprecated:: TBD + + LAMMPS has now exceptions always enabled, so this function + will now always return 1 and can be removed from applications + using the library interface. + In case of an error, LAMMPS will either abort or throw a C++ exception. The latter has to be :ref:`enabled at compile time `. This function checks if exceptions were enabled.