has_enum_gen.hpp 703 B

12345678910111213141516171819202122232425262728293031
  1. // (C) Copyright Edward Diener 2019
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. #if !defined(BOOST_TTI_ENUM_GEN_HPP)
  6. #define BOOST_TTI_ENUM_GEN_HPP
  7. #include <boost/preprocessor/cat.hpp>
  8. /*
  9. The succeeding comments in this file are in doxygen format.
  10. */
  11. /** \file
  12. */
  13. /// Generates the macro metafunction name for BOOST_TTI_HAS_ENUM.
  14. /**
  15. name = the name of the enumeration.
  16. returns = the generated macro metafunction name.
  17. */
  18. #define BOOST_TTI_HAS_ENUM_GEN(name) \
  19. BOOST_PP_CAT(has_enum_,name) \
  20. /**/
  21. #endif // BOOST_TTI_ENUM_GEN_HPP