Changeset View
Changeset View
Standalone View
Standalone View
tests/ECMGenerateExportHeaderTest/library/library.hpp
- This file was added.
1 | #include <library_export.h> | ||||
---|---|---|---|---|---|
2 | | ||||
3 | enum Enum { | ||||
4 | #if LIBRARY_BUILD_DEPRECATED_SINCE(2, 0) | ||||
5 | Enumerator_deprecatedAt2_0, | ||||
6 | #endif | ||||
7 | Enumerator_not_deprecated, | ||||
8 | }; | ||||
9 | | ||||
10 | #if LIBRARY_ENABLE_DEPRECATED_SINCE(2, 0) | ||||
11 | LIBRARY_DEPRECATED_VERSION(2, 0, "Deprecated at 2.0") | ||||
12 | LIBRARY_EXPORT void function_deprecatedAt2_0(); | ||||
13 | #endif | ||||
14 | | ||||
15 | #if LIBRARY_ENABLE_DEPRECATED_SINCE(2, 12) | ||||
16 | LIBRARY_DEPRECATED_VERSION(2, 12, "Deprecated at 2.12") | ||||
17 | LIBRARY_EXPORT void function_deprecatedAt2_12(); | ||||
18 | #endif | ||||
19 | | ||||
20 | LIBRARY_EXPORT void function_not_deprecated(); | ||||
21 | | ||||
22 | class LIBRARY_EXPORT Class { | ||||
23 | public: | ||||
24 | #if LIBRARY_BUILD_DEPRECATED_SINCE(2, 0) | ||||
25 | LIBRARY_DEPRECATED_VERSION(2, 0, "Deprecated at 2.0") | ||||
26 | virtual void method_deprecatedAt2_0(); | ||||
27 | #endif | ||||
28 | | ||||
29 | #if LIBRARY_BUILD_DEPRECATED_SINCE(2, 12) | ||||
30 | LIBRARY_DEPRECATED_VERSION(2, 12, "Deprecated at 2.12") | ||||
31 | virtual void method_deprecatedAt2_12(); | ||||
32 | #endif | ||||
33 | | ||||
34 | virtual void method_not_deprecated(); | ||||
35 | }; |