DATAKIT SDK  V2026.3
config.hpp
Go to the documentation of this file.
1 #ifndef DTK_CORE_CONFIG_HPP
2 #define DTK_CORE_CONFIG_HPP
3 
5 
6 #if !defined(DTK_NO_CXX11_CONSTEXPR)
7 # define DTK_CONSTEXPR constexpr
8 # define DTK_CONSTEXPR_OR_CONST constexpr
9 #else
10 # define DTK_CONSTEXPR
11 # define DTK_CONSTEXPR_OR_CONST const
12 #endif
13 #if !defined(DTK_NO_CXX14_CONSTEXPR)
14 # define DTK_CXX14_CONSTEXPR constexpr
15 #else
16 # define DTK_CXX14_CONSTEXPR
17 #endif
18 
19 #if !defined(DTK_NO_CXX11_NOEXCEPT)
20 # define DTK_NOEXCEPT noexcept
21 # define DTK_NOEXCEPT_IF(Predicate) noexcept((Predicate))
22 # define DTK_NOEXCEPT_EXPR(Expression) noexcept((Expression))
23 #else
24 # define DTK_NOEXCEPT
25 # define DTK_NOEXCEPT_IF(Predicate)
26 # define DTK_NOEXCEPT_EXPR(Expression) false
27 #endif
28 
29 #endif
dtk_compiler_config.h