# New deprecation macros

**URL:** https://discourse.paraview.org/t/new-deprecation-macros/8116
**Category:** Development
**Created:** [October 3, 2021, 2:05am UTC](https://discourse.paraview.org/t/new-deprecation-macros/8116 "2021-10-03T02:05:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [October 3, 2021, 2:05am UTC](https://discourse.paraview.org/t/new-deprecation-macros/8116/1 "2021-10-03T02:05:59Z")

</div>

Hi,

Following VTK, ParaView will be [getting deprecation macros](https://gitlab.kitware.com/paraview/paraview/-/merge_requests/5246) instead of relying on `vtkLegacy.h` macros that make APIs disappear based on build flags. Instead, users will get warnings upon the use of deprecated APIs which can be suppressed by setting `#define PARAVIEW_DEPRECATION_LEVEL PARAVIEW_VERSION_CHECK(5, 10, 0)` to indicate that you need 5.10 compatibility.

Note that APIs deprecated more than a release ago are eligible for removal, so 5.11 may not contain APIs deprecated prior to 5.9 (in fact, the above MR already removes them for 5.11).

Thanks,

–Ben
