Feature macros to guard building blocks
Source: MIT/Lincoln Laboratory ( Daniel Herring)
Now that IDL is modular with building blocks, IDL authors need a way of guarding IDL files so they are compatible with tools that implement different subsets of the building blocks. See discussion in IDL43-21 for a motivating example.
See C++ feature test macros for a possible implementation pattern.
Another option is to have an "IDL_VERSION" macro that can be used as a pre-processor condition.
Reported: IDL 4.2 — Tue, 15 Jun 2021 21:14 GMT
Updated: Wed, 16 Jun 2021 07:26 GMT