|
VTK
9.1.0
|
Go to the documentation of this file.
22#ifndef vtkDeprecation_h
23#define vtkDeprecation_h
67#ifndef VTK_DEPRECATION_LEVEL
69#include "vtkVersionMacros.h"
70#define VTK_DEPRECATION_LEVEL VTK_VERSION_NUMBER
74#define VTK_MINIMUM_DEPRECATION_LEVEL VTK_VERSION_CHECK(8, 2, 0)
78#if VTK_DEPRECATION_LEVEL < VTK_MINIMUM_DEPRECATION_LEVEL
79#undef VTK_DEPRECATION_LEVEL
80#define VTK_DEPRECATION_LEVEL VTK_MINIMUM_DEPRECATION_LEVEL
84#if 0 && __cplusplus >= 201402L
87#define VTK_DEPRECATION(reason) [[deprecated(reason)]]
88#elif defined(VTK_WRAPPING_CXX)
90#define VTK_DEPRECATION(reason)
91#elif defined(__VTK_WRAP__)
92#define VTK_DEPRECATION(reason) [[vtk::deprecated(reason)]]
94#if defined(_WIN32) || defined(_WIN64)
95#define VTK_DEPRECATION(reason) __declspec(deprecated(reason))
96#elif defined(__clang__)
97#if __has_extension(attribute_deprecated_with_message)
98#define VTK_DEPRECATION(reason) __attribute__((__deprecated__(reason)))
100#define VTK_DEPRECATION(reason) __attribute__((__deprecated__))
102#elif defined(__GNUC__)
103#if (__GNUC__ >= 5) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5))
104#define VTK_DEPRECATION(reason) __attribute__((__deprecated__(reason)))
106#define VTK_DEPRECATION(reason) __attribute__((__deprecated__))
109#define VTK_DEPRECATION(reason)
114#if defined(__VTK_WRAP__)
115#define VTK_DEPRECATED_IN_9_1_0(reason) [[vtk::deprecated(reason, "9.1.0")]]
116#elif VTK_DEPRECATION_LEVEL >= VTK_VERSION_CHECK(9, 1, 0)
117#define VTK_DEPRECATED_IN_9_1_0(reason) VTK_DEPRECATION(reason)
119#define VTK_DEPRECATED_IN_9_1_0(reason)
123#if defined(__VTK_WRAP__)
124#define VTK_DEPRECATED_IN_9_0_0(reason) [[vtk::deprecated(reason, "9.0.0")]]
125#elif VTK_DEPRECATION_LEVEL >= VTK_VERSION_CHECK(9, 0, 0)
126#define VTK_DEPRECATED_IN_9_0_0(reason) VTK_DEPRECATION(reason)
128#define VTK_DEPRECATED_IN_9_0_0(reason)
132#if defined(__VTK_WRAP__)
133#define VTK_DEPRECATED_IN_8_2_0(reason) [[vtk::deprecated(reason, "8.2.0")]]
135#define VTK_DEPRECATED_IN_8_2_0(reason) VTK_DEPRECATION(reason)