 |
VTK
9.6.20260318
|
Go to the documentation of this file.
5#ifndef vtkDeprecation_h
6#define vtkDeprecation_h
8#include "vtkVersionQuick.h"
46#ifndef VTK_DEPRECATION_LEVEL
48#ifdef VTK_VERSION_NUMBER
49#define VTK_DEPRECATION_LEVEL VTK_VERSION_NUMBER
51#define VTK_DEPRECATION_LEVEL VTK_VERSION_NUMBER_QUICK
56#define VTK_MINIMUM_DEPRECATION_LEVEL VTK_VERSION_CHECK(9, 5, 0)
60#if VTK_DEPRECATION_LEVEL < VTK_MINIMUM_DEPRECATION_LEVEL
61#undef VTK_DEPRECATION_LEVEL
62#define VTK_DEPRECATION_LEVEL VTK_MINIMUM_DEPRECATION_LEVEL
66#if defined(VTK_WRAPPING_CXX)
68#define VTK_DEPRECATION(reason)
69#elif defined(__VTK_WRAP__)
70#define VTK_DEPRECATION(reason) [[vtk::deprecated(reason)]]
76#if (defined(__apple_build_version__) && (__clang_major__ <= 13))
77#define VTK_DEPRECATION(reason) __attribute__((__deprecated__(reason)))
78#elif (__clang_major__ <= 12)
79#define VTK_DEPRECATION(reason) __attribute__((__deprecated__(reason)))
81#define VTK_DEPRECATION(reason) [[deprecated(reason)]]
83#elif defined(__GNUC__)
88#define VTK_DEPRECATION(reason) __attribute__((__deprecated__(reason)))
90#define VTK_DEPRECATION(reason) [[deprecated(reason)]]
93#define VTK_DEPRECATION(reason) [[deprecated(reason)]]
98#if defined(__VTK_WRAP__)
99#define VTK_DEPRECATED_IN_9_7_0(reason) [[vtk::deprecated(reason, "9.7.0")]]
100#elif VTK_DEPRECATION_LEVEL >= VTK_VERSION_CHECK(9, 6, 20251220)
101#define VTK_DEPRECATED_IN_9_7_0(reason) VTK_DEPRECATION(reason)
103#define VTK_DEPRECATED_IN_9_7_0(reason)
107#if defined(__VTK_WRAP__)
108#define VTK_DEPRECATED_IN_9_6_0(reason) [[vtk::deprecated(reason, "9.6.0")]]
109#elif VTK_DEPRECATION_LEVEL >= VTK_VERSION_CHECK(9, 5, 20250513)
110#define VTK_DEPRECATED_IN_9_6_0(reason) VTK_DEPRECATION(reason)
112#define VTK_DEPRECATED_IN_9_6_0(reason)
116#if defined(__VTK_WRAP__)
117#define VTK_DEPRECATED_IN_9_5_0(reason) [[vtk::deprecated(reason, "9.5.0")]]
119#define VTK_DEPRECATED_IN_9_5_0(reason) VTK_DEPRECATION(reason)
122#if defined(__VTK_WRAP__)
123#define VTK_DEPRECATED_IN_9_4_0(reason) [[vtk::deprecated(reason, "9.4.0")]]
125#define VTK_DEPRECATED_IN_9_4_0(reason) VTK_DEPRECATION(reason)
128#if defined(__VTK_WRAP__)
129#define VTK_DEPRECATED_IN_9_3_0(reason) [[vtk::deprecated(reason, "9.3.0")]]
131#define VTK_DEPRECATED_IN_9_3_0(reason) VTK_DEPRECATION(reason)
134#if defined(__VTK_WRAP__)
135#define VTK_DEPRECATED_IN_9_2_0(reason) [[vtk::deprecated(reason, "9.2.0")]]
137#define VTK_DEPRECATED_IN_9_2_0(reason) VTK_DEPRECATION(reason)
140#if defined(__VTK_WRAP__)
141#define VTK_DEPRECATED_IN_9_1_0(reason) [[vtk::deprecated(reason, "9.1.0")]]
143#define VTK_DEPRECATED_IN_9_1_0(reason) VTK_DEPRECATION(reason)
146#if defined(__VTK_WRAP__)
147#define VTK_DEPRECATED_IN_9_0_0(reason) [[vtk::deprecated(reason, "9.0.0")]]
149#define VTK_DEPRECATED_IN_9_0_0(reason) VTK_DEPRECATION(reason)
152#if defined(__VTK_WRAP__)
153#define VTK_DEPRECATED_IN_8_2_0(reason) [[vtk::deprecated(reason, "8.2.0")]]
155#define VTK_DEPRECATED_IN_8_2_0(reason) VTK_DEPRECATION(reason)