VTK  9.7.1
vtkLegacy.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 
4 #ifndef vtkLegacy_h
5 #define vtkLegacy_h
6 
7 //----------------------------------------------------------------------------
8 // _ _ ___ _____ ___ _ _ ___ _____ ___
9 // | \| | / _ \ |_ _|| __| | \| | / _ \ |_ _|| __|
10 // | . || (_) | | | | _| | . || (_) | | | | _|
11 // |_|\_| \___/ |_| |___| |_|\_| \___/ |_| |___|
12 //
13 // The mechanisms present in this file should no longer be used are are
14 // are non-functional. Instead, the mechanisms present in `vtkDeprecation.h`
15 // should be used. The benefits:
16 //
17 // - documentation of *when* the method was removed
18 // - support for ignoring warnings if an older VTK is also expected to work
19 // - no VTK build will magically take methods away from clients
20 //----------------------------------------------------------------------------
21 
22 #include "vtkDeprecation.h"
23 
24 namespace
25 {
26 VTK_DEPRECATED_IN_9_7_0("This header is deprecated, use vtkDeprecation.h instead")
27 constexpr int vtkLegacyIsDeprecated = 0;
28 constexpr int vtkLegacyIsReallyDeprecated = vtkLegacyIsDeprecated;
29 }
30 
31 /* Compatibility settings. */
32 #define VTK_LEGACY_REMOVE 1
33 #define VTK_LEGACY_SILENT 0
34 #define VTK_LEGACY_BODY(method, version)
35 #define VTK_LEGACY_REPLACED_BODY(method, version, replace)
36 
37 #endif
#define VTK_DEPRECATED_IN_9_7_0(reason)