 |
VTK
9.0.20210118
|
Go to the documentation of this file.
22 #ifndef vtkDeprecated_h
23 #define vtkDeprecated_h
28 #ifndef VTK_DEPRECATION_LEVEL
30 #include "vtkVersionMacros.h"
31 #define VTK_DEPRECATION_LEVEL VTK_VERSION_NUMBER
35 #define VTK_MINIMUM_DEPRECATION_LEVEL VTK_VERSION_CHECK(8, 2, 0)
39 #if VTK_DEPRECATION_LEVEL < VTK_MINIMUM_DEPRECATION_LEVEL
40 #undef VTK_DEPRECATION_LEVEL
41 #define VTK_DEPRECATION_LEVEL VTK_MINIMUM_DEPRECATION_LEVEL
45 #if 0 && __cplusplus >= 201402L
48 #define VTK_DEPRECATION(reason) [[deprecated(reason)]]
49 #elif defined(VTK_WRAPPING_CXX)
51 #define VTK_DEPRECATION(reason)
52 #elif defined(__VTK_WRAP__)
53 #define VTK_DEPRECATION(reason) [[vtk::deprecated(reason)]]
55 #if defined(_WIN32) || defined(_WIN64)
56 #define VTK_DEPRECATION(reason) __declspec(deprecated(reason))
57 #elif defined(__clang__)
58 #if __has_extension(attribute_deprecated_with_message)
59 #define VTK_DEPRECATION(reason) __attribute__((__deprecated__(reason)))
61 #define VTK_DEPRECATION(reason) __attribute__((__deprecated__))
63 #elif defined(__GNUC__)
64 #if (__GNUC__ >= 5) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5))
65 #define VTK_DEPRECATION(reason) __attribute__((__deprecated__(reason)))
67 #define VTK_DEPRECATION(reason) __attribute__((__deprecated__))
70 #define VTK_DEPRECATION(reason)
75 #if VTK_DEPRECATION_LEVEL >= VTK_VERSION_CHECK(9, 1, 0)
76 #define VTK_DEPRECATED_IN_9_1_0(reason) VTK_DEPRECATION(reason)
78 #define VTK_DEPRECATED_IN_9_1_0(reason)
82 #if VTK_DEPRECATION_LEVEL >= VTK_VERSION_CHECK(9, 0, 0)
83 #define VTK_DEPRECATED_IN_9_0_0(reason) VTK_DEPRECATION(reason)
85 #define VTK_DEPRECATED_IN_9_0_0(reason)
89 #define VTK_DEPRECATED_IN_8_2_0(reason) VTK_DEPRECATION(reason)