decl.hpp 1.0 KB

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