Added conditional support of noexcept to fix IAR support (#1195)

This commit is contained in:
David Ockey 2025-10-03 02:44:16 -05:00 committed by John Wellbelove
parent 99a33535d3
commit 1ea45ff28e

View File

@ -341,8 +341,13 @@ SOFTWARE.
#define ETL_ENUM_CLASS(name) enum class name
#define ETL_ENUM_CLASS_TYPE(name, type) enum class name : type
#define ETL_LVALUE_REF_QUALIFIER &
#define ETL_NOEXCEPT noexcept
#define ETL_NOEXCEPT_EXPR(...) noexcept(__VA_ARGS__)
#if ETL_USING_EXCEPTIONS
#define ETL_NOEXCEPT noexcept
#define ETL_NOEXCEPT_EXPR(...) noexcept(__VA_ARGS__)
#else
#define ETL_NOEXCEPT
#define ETL_NOEXCEPT_EXPR(...)
#endif
#else
#define ETL_CONSTEXPR
#define ETL_CONSTEXPR11