Go to the documentation of this file. 5 #ifndef vtkParaViewDeprecation_h 6 #define vtkParaViewDeprecation_h 51 #ifndef PARAVIEW_DEPRECATION_LEVEL 53 #ifdef PARAVIEW_VERSION_NUMBER 54 #define PARAVIEW_DEPRECATION_LEVEL PARAVIEW_VERSION_NUMBER 56 #define PARAVIEW_DEPRECATION_LEVEL PARAVIEW_VERSION_NUMBER_QUICK 61 #define PARAVIEW_MINIMUM_DEPRECATION_LEVEL PARAVIEW_VERSION_CHECK(5, 11, 0) 65 #if PARAVIEW_DEPRECATION_LEVEL < PARAVIEW_MINIMUM_DEPRECATION_LEVEL 66 #undef PARAVIEW_DEPRECATION_LEVEL 67 #define PARAVIEW_DEPRECATION_LEVEL PARAVIEW_MINIMUM_DEPRECATION_LEVEL 71 #if 0 && __cplusplus >= 201402L 74 #define PARAVIEW_DEPRECATION(reason) [[deprecated(reason)]] 75 #elif defined(VTK_WRAPPING_CXX) 77 #define PARAVIEW_DEPRECATION(reason) 78 #elif defined(__VTK_WRAP__) 79 #define PARAVIEW_DEPRECATION(reason) [[vtk::deprecated(reason)]] 81 #if defined(_WIN32) || defined(_WIN64) 82 #define PARAVIEW_DEPRECATION(reason) __declspec(deprecated(reason)) 83 #elif defined(__clang__) 84 #if __has_extension(attribute_deprecated_with_message) 85 #define PARAVIEW_DEPRECATION(reason) __attribute__((__deprecated__(reason))) 87 #define PARAVIEW_DEPRECATION(reason) __attribute__((__deprecated__)) 89 #elif defined(__GNUC__) 90 #if (__GNUC__ >= 5) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5)) 91 #define PARAVIEW_DEPRECATION(reason) __attribute__((__deprecated__(reason))) 93 #define PARAVIEW_DEPRECATION(reason) __attribute__((__deprecated__)) 96 #define PARAVIEW_DEPRECATION(reason) 101 #if defined(__VTK_WRAP__) 102 #define PARAVIEW_DEPRECATED_IN_5_13_0(reason) [[vtk::deprecated(reason, "5.13.0")]] 103 #elif PARAVIEW_DEPRECATION_LEVEL >= PARAVIEW_VERSION_CHECK(5, 12, 20230101) 104 #define PARAVIEW_DEPRECATED_IN_5_13_0(reason) PARAVIEW_DEPRECATION(reason) 106 #define PARAVIEW_DEPRECATED_IN_5_13_0(reason) 110 #if defined(__VTK_WRAP__) 111 #define PARAVIEW_DEPRECATED_IN_5_12_0(reason) [[vtk::deprecated(reason, "5.12.0")]] 112 #define PARAVIEW_DEPRECATED_IN_5_11_0(reason) [[vtk::deprecated(reason, "5.11.0")]] 113 #define PARAVIEW_DEPRECATED_IN_5_10_0(reason) [[vtk::deprecated(reason, "5.10.0")]] 115 #define PARAVIEW_DEPRECATED_IN_5_12_0(reason) PARAVIEW_DEPRECATION(reason) 116 #define PARAVIEW_DEPRECATED_IN_5_11_0(reason) PARAVIEW_DEPRECATION(reason) 117 #define PARAVIEW_DEPRECATED_IN_5_10_0(reason) PARAVIEW_DEPRECATION(reason)