1 
2 // Copyright (C) 2009-2012 Lorenzo Caminiti
3 // Distributed under the Boost Software License, Version 1.0
4 // (see accompanying file LICENSE_1_0.txt or a copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 // Home at http://www.boost.org/libs/local_function
7 
8 #ifndef BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_HPP_
9 #define BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_HPP_
10 
11 #include <boost/local_function/aux_/preprocessor/traits/decl_sign_/sign.hpp>
12 #include <boost/local_function/aux_/preprocessor/traits/decl_/nil.hpp>
13 #include <boost/preprocessor/control/iif.hpp>
14 #include <boost/preprocessor/tuple/eat.hpp>
15 #include <boost/preprocessor/list/adt.hpp>
16 
17 // PUBLIC //
18 
19 // Expand: decl_traits (see DECL_TRAITS macros to inspect these traits).
20 #define BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS(declarations) \
21     BOOST_PP_IIF(BOOST_PP_LIST_IS_NIL(declarations), \
22         BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_NIL \
23         BOOST_PP_TUPLE_EAT(1) \
24     , \
25         BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_SIGN \
26     )(declarations)
27 
28 #endif // #include guard
29 
30