1 2 #ifndef BOOST_CONTRACT_DETAIL_NAME_HPP_ 3 #define BOOST_CONTRACT_DETAIL_NAME_HPP_ 4 5 // Copyright (C) 2008-2018 Lorenzo Caminiti 6 // Distributed under the Boost Software License, Version 1.0 (see accompanying 7 // file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt). 8 // See: http://www.boost.org/doc/libs/release/libs/contract/doc/html/index.html 9 10 #include <boost/contract/detail/config.hpp> 11 #include <boost/preprocessor/cat.hpp> 12 13 /* PUBLIC */ 14 15 // NOTE: Explicitly list number of names to concatenate using ..._NAME-n 16 // (instead of using ..._SEQ_CAT or similar) for optimal speed and reentrancy. 17 18 #define BOOST_CONTRACT_DETAIL_NAME1(name1) \ 19 BOOST_PP_CAT(BOOST_CONTRACT_DETAIL_NAME_PREFIX, name1) 20 21 #define BOOST_CONTRACT_DETAIL_NAME2(name1, name2) \ 22 BOOST_PP_CAT(BOOST_CONTRACT_DETAIL_NAME_PREFIX, BOOST_PP_CAT(name1, \ 23 BOOST_PP_CAT(BOOST_CONTRACT_DETAIL_NAME_INFIX, name2))) 24 25 #endif // #include guard 26 27