slot.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132
  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. # ifndef BOOST_PREPROCESSOR_SLOT_SLOT_HPP
  13. # define BOOST_PREPROCESSOR_SLOT_SLOT_HPP
  14. #
  15. # include <boost/preprocessor/cat.hpp>
  16. # include <boost/preprocessor/slot/detail/def.hpp>
  17. #
  18. # /* BOOST_PP_ASSIGN_SLOT */
  19. #
  20. # define BOOST_PP_ASSIGN_SLOT(i) BOOST_PP_CAT(BOOST_PP_ASSIGN_SLOT_, i)
  21. #
  22. # define BOOST_PP_ASSIGN_SLOT_1 <boost/preprocessor/slot/detail/slot1.hpp>
  23. # define BOOST_PP_ASSIGN_SLOT_2 <boost/preprocessor/slot/detail/slot2.hpp>
  24. # define BOOST_PP_ASSIGN_SLOT_3 <boost/preprocessor/slot/detail/slot3.hpp>
  25. # define BOOST_PP_ASSIGN_SLOT_4 <boost/preprocessor/slot/detail/slot4.hpp>
  26. # define BOOST_PP_ASSIGN_SLOT_5 <boost/preprocessor/slot/detail/slot5.hpp>
  27. #
  28. # /* BOOST_PP_SLOT */
  29. #
  30. # define BOOST_PP_SLOT(i) BOOST_PP_CAT(BOOST_PP_SLOT_, i)()
  31. #
  32. # endif