mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 00:46:03 +08:00
Minor layout changes
This commit is contained in:
parent
0323dabeff
commit
b90bcaaaab
@ -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(...)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user