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_UTILITY_IS_HPP_
0003 #define BOOST_CONTRACT_DETAIL_PP_KEYWORD_UTILITY_IS_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/preprocessor/cat.hpp>
0011 #include <boost/preprocessor/variadic/size.hpp>
0012 
0013 /* PRIVATE */
0014 
0015 #define BOOST_CONTRACT_DETAIL_PP_KEYWORD_UTILITY_IS_1 0
0016 #define BOOST_CONTRACT_DETAIL_PP_KEYWORD_UTILITY_IS_2 1
0017 
0018 /* PUBLIC */
0019 
0020 // Precondition: A macro named `cat_to_comma_prefix ## token-to-check` must be
0021 //               #defined to expand to `,`.
0022 // Precondition: tokens must start with a token concatenable to a macro name
0023 //               (e.g., a literal or integral token).
0024 #define BOOST_CONTRACT_DETAIL_PP_KEYWORD_UTILITY_IS( \
0025         cat_to_comma_prefix, tokens) \
0026     BOOST_PP_CAT(BOOST_CONTRACT_DETAIL_PP_KEYWORD_UTILITY_IS_, \
0027             BOOST_PP_VARIADIC_SIZE(BOOST_PP_CAT(cat_to_comma_prefix, tokens)))
0028 
0029 #endif // #include guard
0030