Go to the documentation of this file. 38 #if defined(VTK_LEGACY_REMOVE) 44 #define VTK_LEGACY(method) VTK_LEGACY__0(method, __LINE__) 45 #define VTK_LEGACY__0(method, line) VTK_LEGACY__1(method, line) 46 #define VTK_LEGACY__1(method, line) class vtkLegacyMethodRemoved##line 48 #elif defined(VTK_LEGACY_SILENT) || defined(VTK_WRAPPING_CXX) 50 #define VTK_LEGACY(method) method 54 #if defined(__GNUC__) && !defined(__INTEL_COMPILER) 55 #define VTK_LEGACY(method) method __attribute__((deprecated)) 56 #elif defined(_MSC_VER) 57 #define VTK_LEGACY(method) __declspec(deprecated) method 59 #define VTK_LEGACY(method) method 80 #if defined(VTK_LEGACY_REMOVE) || defined(VTK_LEGACY_SILENT) 81 #define VTK_LEGACY_BODY(method, version) 82 #define VTK_LEGACY_REPLACED_BODY(method, version, replace) 84 #define VTK_LEGACY_BODY(method, version) \ 85 vtkGenericWarningMacro( \ 86 #method " was deprecated for " version " and will be removed in a future version.") 87 #define VTK_LEGACY_REPLACED_BODY(method, version, replace) \ 88 vtkGenericWarningMacro( \ 89 #method " was deprecated for " version \ 90 " and will be removed in a future version. Use " #replace " instead.")