Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:26

0001 
0002 #ifndef BOOST_CONTRACT_DETAIL_DECLSPEC_HPP_
0003 #define BOOST_CONTRACT_DETAIL_DECLSPEC_HPP_
0004 
0005 // Copyright (C) 2008-2018 Lorenzo Caminiti
0006 // Distributed under the Boost Software License, Version 1.0 (see accompanying
0007 // file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt).
0008 // See: http://www.boost.org/doc/libs/release/libs/contract/doc/html/index.html
0009 
0010 // IMPORTANT: Indirectly included by contract_macro.hpp so trivial headers only.
0011 #include <boost/contract/core/config.hpp> // No compile-time overhead.
0012 #include <boost/config.hpp>
0013 
0014 /* PUBLIC */
0015 
0016 // IMPORTANT: In general, this library should always and only be compiled and
0017 // used as a shared library. Otherwise, lib's state won't be shared among
0018 // different user programs and user libraries. However, this library can be
0019 // safely compiled and used as a static or header-only library only when it is
0020 // being used by a single program unit (e.g., a single program with only
0021 // statically linked libraries that check contracts).
0022 
0023 #ifdef BOOST_CONTRACT_DYN_LINK
0024     #ifdef BOOST_CONTRACT_SOURCE
0025         #define BOOST_CONTRACT_DETAIL_DECLSPEC BOOST_SYMBOL_EXPORT
0026     #else
0027         #define BOOST_CONTRACT_DETAIL_DECLSPEC BOOST_SYMBOL_IMPORT
0028     #endif
0029 #else
0030     #define BOOST_CONTRACT_DETAIL_DECLSPEC /* nothing */
0031 #endif
0032 
0033 #ifdef BOOST_CONTRACT_HEADER_ONLY
0034     #define BOOST_CONTRACT_DETAIL_DECLINLINE inline
0035 #else
0036     #define BOOST_CONTRACT_DETAIL_DECLINLINE /* nothing */
0037 
0038     // Automatically link this lib to correct build variant (for MSVC, etc.).
0039     #if     !defined(BOOST_ALL_NO_LIB) && \
0040             !defined(BOOST_CONTRACT_NO_LIB) && \
0041             !defined(BOOST_CONTRACT_SOURCE)
0042         #define BOOST_LIB_NAME boost_contract // This lib (static or shared).
0043         #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_CONTRACT_DYN_LINK)
0044             #define BOOST_DYN_LINK // This lib as shared.
0045         #endif
0046         #include <boost/config/auto_link.hpp> // Also #undef BOOST_LIB_NAME.
0047     #endif
0048 #endif
0049 
0050 #endif // #include guard
0051