Minor layout changes

This commit is contained in:
John Wellbelove 2025-10-03 10:18:21 +01:00 committed by John Wellbelove
parent 0323dabeff
commit b90bcaaaab

View File

@ -242,22 +242,22 @@ SOFTWARE.
#endif
//*************************************
// Indicate if C++ exceptions are enabled.
// Indicate if C++ exceptions within the ETL are enabled.
#if defined(ETL_THROW_EXCEPTIONS)
#define ETL_USING_EXCEPTIONS 1
#define ETL_USING_EXCEPTIONS 1
#define ETL_NOT_USING_EXCEPTIONS 0
#else
#define ETL_USING_EXCEPTIONS 0
#define ETL_USING_EXCEPTIONS 0
#define ETL_NOT_USING_EXCEPTIONS 1
#endif
//*************************************
// Indicate if C++ exceptions are enabled for debug asserts.
#if ETL_IS_DEBUG_BUILD && defined(ETL_DEBUG_THROW_EXCEPTIONS)
#define ETL_DEBUG_USING_EXCEPTIONS 1
#define ETL_DEBUG_USING_EXCEPTIONS 1
#define ETL_DEBUG_NOT_USING_EXCEPTIONS 0
#else
#define ETL_DEBUG_USING_EXCEPTIONS 0
#define ETL_DEBUG_USING_EXCEPTIONS 0
#define ETL_DEBUG_NOT_USING_EXCEPTIONS 1
#endif
@ -342,8 +342,8 @@ SOFTWARE.
#define ETL_ENUM_CLASS_TYPE(name, type) enum class name : type
#define ETL_LVALUE_REF_QUALIFIER &
#if ETL_USING_EXCEPTIONS
#define ETL_NOEXCEPT noexcept
#define ETL_NOEXCEPT_EXPR(...) noexcept(__VA_ARGS__)
#define ETL_NOEXCEPT noexcept
#define ETL_NOEXCEPT_EXPR(...) noexcept(__VA_ARGS__)
#else
#define ETL_NOEXCEPT
#define ETL_NOEXCEPT_EXPR(...)