DATAKIT API  V2025.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 //DTK_TOREMOVE_START
7 #ifdef DTK_NO_BOOST
8 //DTK_TOREMOVE_END
9 #ifndef DTK_NO_BOOST_NAMESPACE
10 #define DTK_NO_BOOST_NAMESPACE
11 #endif
12 //DTK_TOREMOVE_START
13 #endif
14 //DTK_TOREMOVE_END
15 
16 #if !defined(DTK_NO_CXX11_CONSTEXPR)
17 # define DTK_CONSTEXPR constexpr
18 # define DTK_CONSTEXPR_OR_CONST constexpr
19 #else
20 # define DTK_CONSTEXPR
21 # define DTK_CONSTEXPR_OR_CONST const
22 #endif
23 #if !defined(DTK_NO_CXX14_CONSTEXPR)
24 # define DTK_CXX14_CONSTEXPR constexpr
25 #else
26 # define DTK_CXX14_CONSTEXPR
27 #endif
28 
29 #if !defined(DTK_NO_CXX11_NOEXCEPT)
30 # define DTK_NOEXCEPT noexcept
31 # define DTK_NOEXCEPT_IF(Predicate) noexcept((Predicate))
32 # define DTK_NOEXCEPT_EXPR(Expression) noexcept((Expression))
33 #else
34 # define DTK_NOEXCEPT
35 # define DTK_NOEXCEPT_IF(Predicate)
36 # define DTK_NOEXCEPT_EXPR(Expression) false
37 #endif
38 
39 /*#undef DTK_ASSERT // moved into define.h
40 #undef DTK_ASSERT_MSG
41 
42 #ifndef _DEBUG_DTK
43 # define DTK_ASSERT(expr) ((void)0)
44 # define DTK_ASSERT_MSG(expr, msg) ((void)0)
45 #else
46 #include <assert.h>
47 # define DTK_ASSERT(expr) assert(expr)
48 # define DTK_ASSERT_MSG(expr, msg) assert((expr)&&(msg))
49 #endif*/
50 
51 #endif
dtk_compiler_config.h