$darkmode
Go to the source code of this file.
This file just provides version information for the VTD version we are working with.
We expect the vtd-api library to define a constant VTD_API_VERSION, which takes the following format:
(EPOCH << 24) | (MAJOR_VERSION << 16) | (MINOR_VERSION << 8) | PATCH_VERSION
Each version consists of at most 8 bits, so 256 potential values, including 0. The epoch starts with 0, and is bumped after each version naming scheme.
The following macros are defined from VTD_API_VERSION:
When years are involved, such as in releases versioned YYYY.MM, use the last two years, since the full year will not fit in the 8 bits.
Here are some example versions that could be used with this plugin:
So in order to target VTD 2.X, we could use VTD_API_VERSION_EPOCH==0 or VTD_API_VERSION_MAJOR==2.