test_lib.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // Copyright (c) 2012-2019 Antony Polukhin.
  3. //
  4. //
  5. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. #ifndef BOOST_TYPE_INDEX_TESTS_TEST_LIB_HPP
  9. #define BOOST_TYPE_INDEX_TESTS_TEST_LIB_HPP
  10. // MS compatible compilers support #pragma once
  11. #if defined(_MSC_VER)
  12. # pragma once
  13. #endif
  14. #include <boost/type_index.hpp>
  15. // This is ALWAYS a dynamic library
  16. #if defined(TEST_LIB_SOURCE)
  17. # define TEST_LIB_DECL BOOST_SYMBOL_EXPORT
  18. # else
  19. # define TEST_LIB_DECL BOOST_SYMBOL_IMPORT
  20. # endif
  21. namespace test_lib {
  22. TEST_LIB_DECL boost::typeindex::type_index get_integer();
  23. TEST_LIB_DECL boost::typeindex::type_index get_user_defined_class();
  24. TEST_LIB_DECL boost::typeindex::type_index get_const_integer();
  25. TEST_LIB_DECL boost::typeindex::type_index get_const_user_defined_class();
  26. #if !defined(BOOST_HAS_PRAGMA_DETECT_MISMATCH) || !defined(_CPPRTTI)
  27. // This is required for checking RTTI on/off linkage
  28. TEST_LIB_DECL void accept_typeindex(const boost::typeindex::type_index&);
  29. #endif
  30. }
  31. #endif // BOOST_TYPE_INDEX_TESTS_LIB1_HPP