 |
VTK
9.6.20260223
|
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 (__clang_major__ <= 12)
77#define VTK_DEPRECATION(reason) __attribute__((__deprecated__(reason)))
79#define VTK_DEPRECATION(reason) [[deprecated(reason)]]
81#elif defined(__GNUC__)
86#define VTK_DEPRECATION(reason) __attribute__((__deprecated__(reason)))
88#define VTK_DEPRECATION(reason) [[deprecated(reason)]]
91#define VTK_DEPRECATION(reason) [[deprecated(reason)]]
96#if defined(__VTK_WRAP__)
97#define VTK_DEPRECATED_IN_9_7_0(reason) [[vtk::deprecated(reason, "9.7.0")]]
98#elif VTK_DEPRECATION_LEVEL >= VTK_VERSION_CHECK(9, 6, 20251220)
99#define VTK_DEPRECATED_IN_9_7_0(reason) VTK_DEPRECATION(reason)
101#define VTK_DEPRECATED_IN_9_7_0(reason)
105#if defined(__VTK_WRAP__)
106#define VTK_DEPRECATED_IN_9_6_0(reason) [[vtk::deprecated(reason, "9.6.0")]]
107#elif VTK_DEPRECATION_LEVEL >= VTK_VERSION_CHECK(9, 5, 20250513)
108#define VTK_DEPRECATED_IN_9_6_0(reason) VTK_DEPRECATION(reason)
110#define VTK_DEPRECATED_IN_9_6_0(reason)
114#if defined(__VTK_WRAP__)
115#define VTK_DEPRECATED_IN_9_5_0(reason) [[vtk::deprecated(reason, "9.5.0")]]
117#define VTK_DEPRECATED_IN_9_5_0(reason) VTK_DEPRECATION(reason)
120#if defined(__VTK_WRAP__)
121#define VTK_DEPRECATED_IN_9_4_0(reason) [[vtk::deprecated(reason, "9.4.0")]]
123#define VTK_DEPRECATED_IN_9_4_0(reason) VTK_DEPRECATION(reason)
126#if defined(__VTK_WRAP__)
127#define VTK_DEPRECATED_IN_9_3_0(reason) [[vtk::deprecated(reason, "9.3.0")]]
129#define VTK_DEPRECATED_IN_9_3_0(reason) VTK_DEPRECATION(reason)
132#if defined(__VTK_WRAP__)
133#define VTK_DEPRECATED_IN_9_2_0(reason) [[vtk::deprecated(reason, "9.2.0")]]
135#define VTK_DEPRECATED_IN_9_2_0(reason) VTK_DEPRECATION(reason)
138#if defined(__VTK_WRAP__)
139#define VTK_DEPRECATED_IN_9_1_0(reason) [[vtk::deprecated(reason, "9.1.0")]]
141#define VTK_DEPRECATED_IN_9_1_0(reason) VTK_DEPRECATION(reason)
144#if defined(__VTK_WRAP__)
145#define VTK_DEPRECATED_IN_9_0_0(reason) [[vtk::deprecated(reason, "9.0.0")]]
147#define VTK_DEPRECATED_IN_9_0_0(reason) VTK_DEPRECATION(reason)
150#if defined(__VTK_WRAP__)
151#define VTK_DEPRECATED_IN_8_2_0(reason) [[vtk::deprecated(reason, "8.2.0")]]
153#define VTK_DEPRECATED_IN_8_2_0(reason) VTK_DEPRECATION(reason)