mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Added conditional support of noexcept to fix IAR support (#1195)
This commit is contained in:
parent
99a33535d3
commit
1ea45ff28e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user