iteration.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. # /* **************************************************************************
  2. # * *
  3. # * (C) Copyright Paul Mensonides 2002.
  4. # * Distributed under the Boost Software License, Version 1.0. (See
  5. # * accompanying file LICENSE_1_0.txt or copy at
  6. # * http://www.boost.org/LICENSE_1_0.txt)
  7. # * *
  8. # ************************************************************************** */
  9. #
  10. # /* See http://www.boost.org for most recent version. */
  11. #
  12. # if !BOOST_PP_IS_SELFISH
  13. #
  14. # include <libs/preprocessor/test/iteration.h>
  15. #
  16. # define TEST(n) BEGIN n == n END
  17. #
  18. # define BOOST_PP_LOCAL_MACRO(n) TEST(n)
  19. # define BOOST_PP_LOCAL_LIMITS (1, 5)
  20. # include BOOST_PP_LOCAL_ITERATE()
  21. #
  22. # define BOOST_PP_LOCAL_MACRO(n) TEST(n)
  23. # define BOOST_PP_LOCAL_LIMITS (5, 1)
  24. # include BOOST_PP_LOCAL_ITERATE()
  25. #
  26. # define BOOST_PP_INDIRECT_SELF <libs/preprocessor/test/iteration.cpp>
  27. # include BOOST_PP_INCLUDE_SELF()
  28. #
  29. # else
  30. BEGIN BOOST_PP_IS_SELFISH == 1 END
  31. # endif