 |
VTK
9.2.6
|
Go to the documentation of this file.
22 #ifndef vtkDeprecation_h
23 #define vtkDeprecation_h
25 #include "vtkVersionMacros.h"
67 #ifndef VTK_DEPRECATION_LEVEL
69 #define VTK_DEPRECATION_LEVEL VTK_VERSION_NUMBER
73 #define VTK_MINIMUM_DEPRECATION_LEVEL VTK_VERSION_CHECK(9, 0, 0)
77 #if VTK_DEPRECATION_LEVEL < VTK_MINIMUM_DEPRECATION_LEVEL
78 #undef VTK_DEPRECATION_LEVEL
79 #define VTK_DEPRECATION_LEVEL VTK_MINIMUM_DEPRECATION_LEVEL
83 #if 0 && __cplusplus >= 201402L
86 #define VTK_DEPRECATION(reason) [[deprecated(reason)]]
87 #elif defined(VTK_WRAPPING_CXX)
89 #define VTK_DEPRECATION(reason)
90 #elif defined(__VTK_WRAP__)
91 #define VTK_DEPRECATION(reason) [[vtk::deprecated(reason)]]
93 #if defined(_WIN32) || defined(_WIN64)
94 #define VTK_DEPRECATION(reason) __declspec(deprecated(reason))
95 #elif defined(__clang__)
96 #if __has_extension(attribute_deprecated_with_message)
97 #define VTK_DEPRECATION(reason) __attribute__((__deprecated__(reason)))
99 #define VTK_DEPRECATION(reason) __attribute__((__deprecated__))
101 #elif defined(__GNUC__)
102 #if (__GNUC__ >= 5) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5))
103 #define VTK_DEPRECATION(reason) __attribute__((__deprecated__(reason)))
105 #define VTK_DEPRECATION(reason) __attribute__((__deprecated__))
108 #define VTK_DEPRECATION(reason)
113 #if defined(__VTK_WRAP__)
114 #define VTK_DEPRECATED_IN_9_2_0(reason) [[vtk::deprecated(reason, "9.2.0")]]
115 #elif VTK_DEPRECATION_LEVEL >= VTK_VERSION_CHECK(9, 1, 20211001)
116 #define VTK_DEPRECATED_IN_9_2_0(reason) VTK_DEPRECATION(reason)
118 #define VTK_DEPRECATED_IN_9_2_0(reason)
122 #if defined(__VTK_WRAP__)
123 #define VTK_DEPRECATED_IN_9_1_0(reason) [[vtk::deprecated(reason, "9.1.0")]]
124 #elif VTK_DEPRECATION_LEVEL >= VTK_VERSION_CHECK(9, 1, 0)
125 #define VTK_DEPRECATED_IN_9_1_0(reason) VTK_DEPRECATION(reason)
127 #define VTK_DEPRECATED_IN_9_1_0(reason)
131 #if defined(__VTK_WRAP__)
132 #define VTK_DEPRECATED_IN_9_0_0(reason) [[vtk::deprecated(reason, "9.0.0")]]
134 #define VTK_DEPRECATED_IN_9_0_0(reason) VTK_DEPRECATION(reason)
137 #if defined(__VTK_WRAP__)
138 #define VTK_DEPRECATED_IN_8_2_0(reason) [[vtk::deprecated(reason, "8.2.0")]]
140 #define VTK_DEPRECATED_IN_8_2_0(reason) VTK_DEPRECATION(reason)