2 #ifndef BOOST_CONTRACT_DETAIL_PP_KEYWORD_PRIVATE_HPP_
3 #define BOOST_CONTRACT_DETAIL_PP_KEYWORD_PRIVATE_HPP_
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
10 #include <boost/contract/detail/preprocessor/keyword/utility/is.hpp>
11 #include <boost/preprocessor/cat.hpp>
15 // Must expand to a single comma `,` (not local macros, do not #undefine).
16 #define BOOST_CONTRACT_DETAIL_PP_KEYWORD_PRIVATE_CAT_TO_COMMAprivate ,
18 // Must expand to empty `` (not local macros, do not #undefine).
19 #define BOOST_CONTRACT_DETAIL_PP_KEYWORD_PRIVATE_CAT_TO_EMPTYprivate
23 // Precondition: tokens must start with a token concatenable to a macro name
24 // (e.g., a literal or integral token).
25 #define BOOST_CONTRACT_DETAIL_PP_KEYWORD_IS_PRIVATE(tokens) \
26 BOOST_CONTRACT_DETAIL_PP_KEYWORD_UTILITY_IS( \
27 BOOST_CONTRACT_DETAIL_PP_KEYWORD_PRIVATE_CAT_TO_COMMA, tokens)
29 // Precondition: tokens must start with `private` (this can be
30 // checked with `..._IS_PRIVATE` macro above).
31 #define BOOST_CONTRACT_DETAIL_PP_KEYWORD_REMOVE_PRIVATE(tokens) \
32 BOOST_PP_CAT(BOOST_CONTRACT_DETAIL_PP_KEYWORD_PRIVATE_CAT_TO_EMPTY, tokens)
34 #endif // #include guard