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_PP_KEYWORD_PROTECTED_HPP_
0003 #define BOOST_CONTRACT_DETAIL_PP_KEYWORD_PROTECTED_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 #include <boost/contract/detail/preprocessor/keyword/utility/is.hpp>
0011 #include <boost/preprocessor/cat.hpp>
0012 
0013 /* PRIVATE */
0014 
0015 // Must expand to a single comma `,` (not local macros, do not #undefine).
0016 #define BOOST_CONTRACT_DETAIL_PP_KEYWORD_PROTECTED_CAT_TO_COMMAprotected ,
0017 
0018 // Must expand to empty `` (not local macros, do not #undefine).
0019 #define BOOST_CONTRACT_DETAIL_PP_KEYWORD_PROTECTED_CAT_TO_EMPTYprotected
0020 
0021 /* PUBLIC */
0022 
0023 // Precondition: tokens must start with a token concatenable to a macro name
0024 //               (e.g., a literal or integral token).
0025 #define BOOST_CONTRACT_DETAIL_PP_KEYWORD_IS_PROTECTED(tokens) \
0026     BOOST_CONTRACT_DETAIL_PP_KEYWORD_UTILITY_IS( \
0027             BOOST_CONTRACT_DETAIL_PP_KEYWORD_PROTECTED_CAT_TO_COMMA, tokens)
0028 
0029 // Precondition: tokens must start with `protected` (this can be
0030 //               checked with `..._IS_PROTECTED` macro above).
0031 #define BOOST_CONTRACT_DETAIL_PP_KEYWORD_REMOVE_PROTECTED(tokens) \
0032     BOOST_PP_CAT(BOOST_CONTRACT_DETAIL_PP_KEYWORD_PROTECTED_CAT_TO_EMPTY, \
0033             tokens)
0034 
0035 #endif // #include guard
0036