include_preprocessed.hpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // Copyright Aleksey Gurtovoy 2001-2004
  2. //
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // (See accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. // See http://www.boost.org/libs/mpl for documentation.
  8. // $Id$
  9. // $Date$
  10. // $Revision$
  11. // NO INCLUDE GUARDS, THE HEADER IS INTENDED FOR MULTIPLE INCLUSION!
  12. #include <boost/mpl/aux_/config/typeof.hpp>
  13. #include <boost/mpl/aux_/config/ctps.hpp>
  14. #include <boost/mpl/aux_/config/preprocessor.hpp>
  15. #include <boost/mpl/aux_/config/workaround.hpp>
  16. #include <boost/preprocessor/cat.hpp>
  17. #include <boost/preprocessor/stringize.hpp>
  18. #if defined(BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES)
  19. # define AUX778076_INCLUDE_DIR typeof_based
  20. #elif defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
  21. # define AUX778076_INCLUDE_DIR no_ctps
  22. #else
  23. # define AUX778076_INCLUDE_DIR plain
  24. #endif
  25. #if !defined(BOOST_NEEDS_TOKEN_PASTING_OP_FOR_TOKENS_JUXTAPOSING)
  26. # define AUX778076_HEADER \
  27. AUX778076_INCLUDE_DIR/BOOST_MPL_PREPROCESSED_HEADER \
  28. /**/
  29. #else
  30. # define AUX778076_HEADER \
  31. BOOST_PP_CAT(AUX778076_INCLUDE_DIR,/)##BOOST_MPL_PREPROCESSED_HEADER \
  32. /**/
  33. #endif
  34. #if BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(700))
  35. # define AUX778076_INCLUDE_STRING BOOST_PP_STRINGIZE(boost/mpl/map/aux_/preprocessed/AUX778076_HEADER)
  36. # include AUX778076_INCLUDE_STRING
  37. # undef AUX778076_INCLUDE_STRING
  38. #else
  39. # include BOOST_PP_STRINGIZE(boost/mpl/map/aux_/preprocessed/AUX778076_HEADER)
  40. #endif
  41. # undef AUX778076_HEADER
  42. # undef AUX778076_INCLUDE_DIR
  43. #undef BOOST_MPL_PREPROCESSED_HEADER