set_c.hpp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef BOOST_MPL_SET_C_HPP_INCLUDED
  2. #define BOOST_MPL_SET_C_HPP_INCLUDED
  3. // Copyright Aleksey Gurtovoy 2000-2004
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/mpl for documentation.
  10. // $Id$
  11. // $Date$
  12. // $Revision$
  13. #if !defined(BOOST_MPL_PREPROCESSING_MODE)
  14. # include <boost/mpl/limits/set.hpp>
  15. # include <boost/mpl/aux_/nttp_decl.hpp>
  16. # include <boost/mpl/aux_/config/preprocessor.hpp>
  17. # include <boost/preprocessor/inc.hpp>
  18. # include <boost/preprocessor/cat.hpp>
  19. # include <boost/preprocessor/stringize.hpp>
  20. #if !defined(BOOST_NEEDS_TOKEN_PASTING_OP_FOR_TOKENS_JUXTAPOSING)
  21. # define AUX778076_SET_C_HEADER \
  22. BOOST_PP_CAT(BOOST_PP_CAT(set,BOOST_MPL_LIMIT_SET_SIZE),_c).hpp \
  23. /**/
  24. #else
  25. # define AUX778076_SET_C_HEADER \
  26. BOOST_PP_CAT(BOOST_PP_CAT(set,BOOST_MPL_LIMIT_SET_SIZE),_c)##.hpp \
  27. /**/
  28. #endif
  29. # include BOOST_PP_STRINGIZE(boost/mpl/set/AUX778076_SET_C_HEADER)
  30. # undef AUX778076_SET_C_HEADER
  31. # include <climits>
  32. #endif
  33. #include <boost/mpl/aux_/config/use_preprocessed.hpp>
  34. #if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \
  35. && !defined(BOOST_MPL_PREPROCESSING_MODE)
  36. # define BOOST_MPL_PREPROCESSED_HEADER set_c.hpp
  37. # include <boost/mpl/aux_/include_preprocessed.hpp>
  38. #else
  39. # include <boost/mpl/limits/set.hpp>
  40. # define AUX778076_SEQUENCE_NAME set_c
  41. # define AUX778076_SEQUENCE_LIMIT BOOST_MPL_LIMIT_SET_SIZE
  42. # define AUX778076_SEQUENCE_NAME_N(n) BOOST_PP_CAT(BOOST_PP_CAT(set,n),_c)
  43. # define AUX778076_SEQUENCE_INTEGRAL_WRAPPER
  44. # include <boost/mpl/aux_/sequence_wrapper.hpp>
  45. #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
  46. #endif // BOOST_MPL_SET_C_HPP_INCLUDED