decl_error.hpp 1.0 KB

123456789101112131415161718192021222324252627
  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_ERROR_HPP_
  7. #define BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_ERROR_HPP_
  8. #include <boost/local_function/aux_/preprocessor/traits/decl_/index.hpp>
  9. #include <boost/preprocessor/tuple/elem.hpp>
  10. // PUBLIC //
  11. // Expand: `[ERROR_message_text] EMPTY`, EMPTY iff no pp-parsing error.
  12. #define BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_ERROR(decl_traits) \
  13. BOOST_PP_TUPLE_ELEM(BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_INDEX_MAX, \
  14. BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_INDEX_ERROR, decl_traits)
  15. // Expand: `[ERROR_message_text]`, EMPTY iff no pp-parsing error.
  16. #define BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_ERROR_MSG(decl_traits) \
  17. BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_ERROR(decl_traits) \
  18. (/* expand EMPTY */)
  19. #endif // #include guard