BVB Source Codes

mars Show config.hpp Source code

Return Download mars: download config.hpp Source code - Download mars Source code - Type:.hpp
  1.  
  2. //          Copyright Oliver Kowalke 2014.
  3. // Distributed under the Boost Software License, Version 1.0.
  4. //    (See accompanying file LICENSE_1_0.txt or copy at
  5. //          http://www.boost.org/LICENSE_1_0.txt)
  6.  
  7. #ifndef BOOST_CONTEXT_DETAIL_CONFIG_H
  8. #define BOOST_CONTEXT_DETAIL_CONFIG_H
  9.  
  10. // required for SD-6 compile-time integer sequences
  11. #include <utility>
  12.  
  13. #include <boost/config.hpp>
  14. #include <boost/detail/workaround.hpp>
  15.  
  16. #ifdef BOOST_CONTEXT_DECL
  17. # undef BOOST_CONTEXT_DECL
  18. #endif
  19.  
  20. #if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_CONTEXT_DYN_LINK) ) && ! defined(BOOST_CONTEXT_STATIC_LINK)
  21. # if defined(BOOST_CONTEXT_SOURCE)
  22. #  define BOOST_CONTEXT_DECL BOOST_SYMBOL_EXPORT
  23. #  define BOOST_CONTEXT_BUILD_DLL
  24. # else
  25. #  define BOOST_CONTEXT_DECL BOOST_SYMBOL_IMPORT
  26. # endif
  27. #endif
  28.  
  29. #if ! defined(BOOST_CONTEXT_DECL)
  30. # define BOOST_CONTEXT_DECL
  31. #endif
  32.  
  33. #if ! defined(BOOST_CONTEXT_SOURCE) && ! defined(BOOST_ALL_NO_LIB) && ! defined(BOOST_CONTEXT_NO_LIB)
  34. # define BOOST_LIB_NAME boost_context
  35. # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_CONTEXT_DYN_LINK)
  36. #  define BOOST_DYN_LINK
  37. # endif
  38. # include <boost/config/auto_link.hpp>
  39. #endif
  40.  
  41. #undef BOOST_CONTEXT_CALLDECL
  42. #if (defined(i386) || defined(__i386__) || defined(__i386) \
  43.      || defined(__i486__) || defined(__i586__) || defined(__i686__) \
  44.      || defined(__X86__) || defined(_X86_) || defined(__THW_INTEL__) \
  45.      || defined(__I86__) || defined(__INTEL__) || defined(__IA32__) \
  46.      || defined(_M_IX86) || defined(_I86_)) && defined(BOOST_WINDOWS)
  47. # define BOOST_CONTEXT_CALLDECL __cdecl
  48. #else
  49. # define BOOST_CONTEXT_CALLDECL
  50. #endif
  51.  
  52. #if defined(BOOST_USE_SEGMENTED_STACKS)
  53. # if ! ( (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) ) ) || \
  54.          (defined(__clang__) && (__clang_major__ > 2 || ( __clang_major__ == 2 && __clang_minor__ > 3) ) ) )
  55. #  error "compiler does not support segmented_stack stacks"
  56. # endif
  57. # define BOOST_CONTEXT_SEGMENTS 10
  58. #endif
  59.  
  60.  
  61. #define BOOST_CONTEXT_NO_CXX14_INTEGER_SEQUENCE
  62. // use rd6 macros for std::integer_sequence
  63. #if defined(__cpp_lib_integer_sequence) && __cpp_lib_integer_sequence >= 201304
  64. # undef BOOST_CONTEXT_NO_CXX14_INTEGER_SEQUENCE
  65. #endif
  66. // workaroud: MSVC 14 does not provide macros to test for compile-time integer sequence
  67. #if _MSC_VER > 1800 // _MSC_VER == 1800 -> MS Visual Studio 2013
  68. # undef BOOST_CONTEXT_NO_INDEX_SEQUENCE
  69. #endif
  70. // workaround: Xcode clang feature detection
  71. #if ! defined(__cpp_lib_integer_sequence) && __cpp_lib_integer_sequence >= 201304
  72. # if _LIBCPP_STD_VER > 11
  73. #  undef BOOST_CONTEXT_NO_CXX14_INTEGER_SEQUENCE
  74. # endif
  75. #endif
  76.  
  77. // workaroud: MSVC 14 does support constexpr
  78. #if _MSC_VER > 1800 // _MSC_VER == 1800 -> MS Visual Studio 2013
  79. # undef BOOST_NO_CXX11_CONSTEXPR
  80. #endif
  81.  
  82. #undef BOOST_CONTEXT_NO_CXX11
  83. #if defined(BOOST_NO_CXX11_AUTO_DECLARATIONS) || \
  84.     defined(BOOST_NO_CXX11_CONSTEXPR) || \
  85.     defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) || \
  86.     defined(BOOST_NO_CXX11_FINAL) || \
  87.     defined(BOOST_NO_CXX11_HDR_TUPLE) || \
  88.     defined(BOOST_NO_CXX11_NOEXCEPT) || \
  89.     defined(BOOST_NO_CXX11_NULLPTR) || \
  90.     defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \
  91.     defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) || \
  92.     defined(BOOST_NO_CXX11_UNIFIED_INITIALISATION_SYNTAX) || \
  93.     defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || \
  94.     defined(BOOST_NO_HDR_ATOMIC) || \
  95.     defined(BOOST_NO_HDR_TUPLE)
  96. # define BOOST_CONTEXT_NO_CXX11
  97. #endif
  98.  
  99. #if ! defined(BOOST_EXECUTION_CONTEXT)
  100. # if defined(BOOST_USE_SEGMENTED_STACKS)
  101. #  define BOOST_EXECUTION_CONTEXT 1
  102. # else
  103. #  define BOOST_EXECUTION_CONTEXT 2
  104. # endif
  105. #endif
  106.  
  107. #endif // BOOST_CONTEXT_DETAIL_CONFIG_H
  108.  
downloadconfig.hpp Source code - Download mars Source code
Related Source Codes/Software:
Hero - Elegant transition library for iOS & tvOS 2017-06-09
deep-photo-styletransfer - Code and data for paper "Deep Photo Style Transfer... 2017-06-09
mastodon - A GNU Social-compatible microblogging server ... 2017-06-09
plyr - A simple HTML5, YouTube and Vimeo player ... 2017-06-08
prepack - Prepack is a partial evaluator for JavaScript. Pre... 2017-06-08
Public-APIs - 2017-06-09
lottie-ios - An iOS library to natively render After Effects ve... 2017-06-09
Awesome-Hacking - A collection of various awesome lists for hackers,... 2017-06-09
algorithms - Minimal examples of data structures and algorithms... 2017-06-10
lectures - Oxford Deep NLP 2017 course 2017-06-10
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top