Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/local_function/detail/preprocessor/keyword/facility/add.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 
0002 // Copyright (C) 2009-2012 Lorenzo Caminiti
0003 // Distributed under the Boost Software License, Version 1.0
0004 // (see accompanying file LICENSE_1_0.txt or a copy at
0005 // http://www.boost.org/LICENSE_1_0.txt)
0006 // Home at http://www.boost.org/libs/local_function
0007 
0008 #ifndef BOOST_LOCAL_FUNCTION_DETAIL_PP_KEYWORD_FACILITY_ADD_HPP_
0009 #define BOOST_LOCAL_FUNCTION_DETAIL_PP_KEYWORD_FACILITY_ADD_HPP_
0010 
0011 #include <boost/preprocessor/control/expr_iif.hpp>
0012 #include <boost/preprocessor/logical/compl.hpp>
0013 
0014 // `is_front_macro(tokens)` is 1 if `tokens` start w/ `keyword` to add, else 0.
0015 #define BOOST_LOCAL_FUNCTION_DETAIL_PP_KEYWORD_FACILITY_ADD_FRONT( \
0016         tokens, is_front_macro, keyword) \
0017     BOOST_PP_EXPR_IIF(BOOST_PP_COMPL(is_front_macro(tokens)), keyword) tokens
0018 
0019 // `is_back_macro(tokens)` is 1 if `tokens` end with `keyword` to add, else 0.
0020 #define BOOST_LOCAL_FUNCTION_DETAIL_PP_KEYWORD_FACILITY_ADD_BACK( \
0021         tokens, is_back_macro, keyword) \
0022     tokens BOOST_PP_EXPR_IIF(BOOST_PP_COMPL(is_back_macro(tokens)), keyword)
0023 
0024 #endif // #include guard
0025