| 1 | // |
|---|---|
| 2 | // Copyright 2012-2024 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 | |
| 9 | #ifndef BOOST_TYPE_INDEX_TESTS_TEST_LIB_HPP |
| 10 | #define BOOST_TYPE_INDEX_TESTS_TEST_LIB_HPP |
| 11 | |
| 12 | // MS compatible compilers support #pragma once |
| 13 | #if defined(_MSC_VER) |
| 14 | # pragma once |
| 15 | #endif |
| 16 | |
| 17 | #include <boost/type_index.hpp> |
| 18 | |
| 19 | // This is ALWAYS a dynamic library |
| 20 | #if defined(TEST_LIB_SOURCE) |
| 21 | # define TEST_LIB_DECL BOOST_SYMBOL_EXPORT |
| 22 | # else |
| 23 | # define TEST_LIB_DECL BOOST_SYMBOL_IMPORT |
| 24 | # endif |
| 25 | |
| 26 | namespace test_lib { |
| 27 | |
| 28 | TEST_LIB_DECL boost::typeindex::type_index get_integer(); |
| 29 | TEST_LIB_DECL boost::typeindex::type_index get_user_defined_class(); |
| 30 | |
| 31 | TEST_LIB_DECL boost::typeindex::type_index get_const_integer(); |
| 32 | TEST_LIB_DECL boost::typeindex::type_index get_const_user_defined_class(); |
| 33 | |
| 34 | #if !defined(BOOST_HAS_PRAGMA_DETECT_MISMATCH) || !defined(_CPPRTTI) |
| 35 | // This is required for checking RTTI on/off linkage |
| 36 | TEST_LIB_DECL void accept_typeindex(const boost::typeindex::type_index&); |
| 37 | #endif |
| 38 | |
| 39 | } |
| 40 | |
| 41 | #endif // BOOST_TYPE_INDEX_TESTS_LIB1_HPP |
| 42 | |
| 43 |
