DATAKIT API  V2025.1
config.hpp
Go to the documentation of this file.
1 #ifndef DTK_CORE_CONFIG_HPP
2 #define DTK_CORE_CONFIG_HPP
3 
5 
6 #ifdef DTK_NO_BOOST //DTK_TOREMOVE
7 #ifndef DTK_NO_BOOST_NAMESPACE
8 #define DTK_NO_BOOST_NAMESPACE
9 #endif
10 #endif //DTK_TOREMOVE
11 
12 #if !defined(DTK_NO_CXX11_CONSTEXPR)
13 # define DTK_CONSTEXPR constexpr
14 # define DTK_CONSTEXPR_OR_CONST constexpr
15 #else
16 # define DTK_CONSTEXPR
17 # define DTK_CONSTEXPR_OR_CONST const
18 #endif
19 #if !defined(DTK_NO_CXX14_CONSTEXPR)
20 # define DTK_CXX14_CONSTEXPR constexpr
21 #else
22 # define DTK_CXX14_CONSTEXPR
23 #endif
24 
25 #if !defined(DTK_NO_CXX11_NOEXCEPT)
26 # define DTK_NOEXCEPT noexcept
27 # define DTK_NOEXCEPT_IF(Predicate) noexcept((Predicate))
28 # define DTK_NOEXCEPT_EXPR(Expression) noexcept((Expression))
29 #else
30 # define DTK_NOEXCEPT
31 # define DTK_NOEXCEPT_IF(Predicate)
32 # define DTK_NOEXCEPT_EXPR(Expression) false
33 #endif
34 
35 /*#undef DTK_ASSERT // moved into define.h
36 #undef DTK_ASSERT_MSG
37 
38 #ifndef _DEBUG_DTK
39 # define DTK_ASSERT(expr) ((void)0)
40 # define DTK_ASSERT_MSG(expr, msg) ((void)0)
41 #else
42 #include <assert.h>
43 # define DTK_ASSERT(expr) assert(expr)
44 # define DTK_ASSERT_MSG(expr, msg) assert((expr)&&(msg))
45 #endif*/
46 
47 #endif
dtk_compiler_config.h