|
VTK
9.4.20241108
|
Go to the documentation of this file.
5#ifndef vtkDeprecation_h
6#define vtkDeprecation_h
8#include "vtkVersionQuick.h"
54#ifndef VTK_DEPRECATION_LEVEL
56#ifdef VTK_VERSION_NUMBER
57#define VTK_DEPRECATION_LEVEL VTK_VERSION_NUMBER
59#define VTK_DEPRECATION_LEVEL VTK_VERSION_NUMBER_QUICK
64#define VTK_MINIMUM_DEPRECATION_LEVEL VTK_VERSION_CHECK(9, 1, 0)
68#if VTK_DEPRECATION_LEVEL < VTK_MINIMUM_DEPRECATION_LEVEL
69#undef VTK_DEPRECATION_LEVEL
70#define VTK_DEPRECATION_LEVEL VTK_MINIMUM_DEPRECATION_LEVEL
74#if 0 && __cplusplus >= 201402L
77#define VTK_DEPRECATION(reason) [[deprecated(reason)]]
78#elif defined(VTK_WRAPPING_CXX)
80#define VTK_DEPRECATION(reason)
81#elif defined(__VTK_WRAP__)
82#define VTK_DEPRECATION(reason) [[vtk::deprecated(reason)]]
84#if defined(_WIN32) || defined(_WIN64)
85#define VTK_DEPRECATION(reason) __declspec(deprecated(reason))
86#elif defined(__clang__)
87#if __has_extension(attribute_deprecated_with_message)
88#define VTK_DEPRECATION(reason) __attribute__((__deprecated__(reason)))
90#define VTK_DEPRECATION(reason) __attribute__((__deprecated__))
92#elif defined(__GNUC__)
93#if (__GNUC__ >= 5) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5))
94#define VTK_DEPRECATION(reason) __attribute__((__deprecated__(reason)))
96#define VTK_DEPRECATION(reason) __attribute__((__deprecated__))
99#define VTK_DEPRECATION(reason)
104#if defined(__VTK_WRAP__)
105#define VTK_DEPRECATED_IN_9_4_0(reason) [[vtk::deprecated(reason, "9.4.0")]]
106#elif VTK_DEPRECATION_LEVEL >= VTK_VERSION_CHECK(9, 3, 20230807)
107#define VTK_DEPRECATED_IN_9_4_0(reason) VTK_DEPRECATION(reason)
109#define VTK_DEPRECATED_IN_9_4_0(reason)
113#if defined(__VTK_WRAP__)
114#define VTK_DEPRECATED_IN_9_3_0(reason) [[vtk::deprecated(reason, "9.3.0")]]
115#elif VTK_DEPRECATION_LEVEL >= VTK_VERSION_CHECK(9, 2, 20220617)
116#define VTK_DEPRECATED_IN_9_3_0(reason) VTK_DEPRECATION(reason)
118#define VTK_DEPRECATED_IN_9_3_0(reason)
122#if defined(__VTK_WRAP__)
123#define VTK_DEPRECATED_IN_9_2_0(reason) [[vtk::deprecated(reason, "9.2.0")]]
125#define VTK_DEPRECATED_IN_9_2_0(reason) VTK_DEPRECATION(reason)
128#if defined(__VTK_WRAP__)
129#define VTK_DEPRECATED_IN_9_1_0(reason) [[vtk::deprecated(reason, "9.1.0")]]
131#define VTK_DEPRECATED_IN_9_1_0(reason) VTK_DEPRECATION(reason)
134#if defined(__VTK_WRAP__)
135#define VTK_DEPRECATED_IN_9_0_0(reason) [[vtk::deprecated(reason, "9.0.0")]]
137#define VTK_DEPRECATED_IN_9_0_0(reason) VTK_DEPRECATION(reason)
140#if defined(__VTK_WRAP__)
141#define VTK_DEPRECATED_IN_8_2_0(reason) [[vtk::deprecated(reason, "8.2.0")]]
143#define VTK_DEPRECATED_IN_8_2_0(reason) VTK_DEPRECATION(reason)