extends_funop_const.hpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #if !defined(BOOST_PROTO_DONT_USE_PREPROCESSED_FILES)
  2. #ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
  3. BOOST_PROTO_EXTENDS_FUNCTION_()
  4. BOOST_PROTO_DEFINE_FUN_OP_VARIADIC_IMPL_(BOOST_PROTO_CONST)
  5. #else
  6. #include <boost/proto/detail/preprocessed/extends_funop_const.hpp>
  7. #endif
  8. #else
  9. #define BOOST_PP_LOCAL_MACRO(N) \
  10. BOOST_PROTO_DEFINE_FUN_OP_CONST(1, N, ~) \
  11. /**/
  12. #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES)
  13. #pragma wave option(preserve: 2, line: 0, output: "preprocessed/extends_funop_const.hpp")
  14. #endif
  15. ///////////////////////////////////////////////////////////////////////////////
  16. /// \file extends_funop_const.hpp
  17. /// Definitions for extends\<\>::operator()
  18. //
  19. // Copyright 2008 Eric Niebler. Distributed under the Boost
  20. // Software License, Version 1.0. (See accompanying file
  21. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  22. #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES)
  23. #pragma wave option(preserve: 1)
  24. #endif
  25. BOOST_PROTO_EXTENDS_FUNCTION_()
  26. #define BOOST_PP_LOCAL_LIMITS \
  27. (0, BOOST_PP_DEC(BOOST_PROTO_MAX_FUNCTION_CALL_ARITY))
  28. #include BOOST_PP_LOCAL_ITERATE()
  29. #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES)
  30. #pragma wave option(output: null)
  31. #endif
  32. #endif