extends_funop.hpp 1.7 KB

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