Expand to true if deprecations are enforced for version M.N of UOR U.
Synopsis
Declared in <bsls_deprecate.h>
#define BSLS_DEPRECATE_IS_ACTIVE(U, M, N)
Description
Expand to an expression evaluating to true in a preprocessor context if deprecations are being enforced for the specified version M.N of the specified UOR U, and expand to an expression evaluating to false otherwise. Deprecations will be enforced for version M.N of UOR U if: * BB_SILENCE_DEPRECATIONS_<U>_<M>_<N> has not been defined in this translation unit, and * BB_SILENCE_DEPRECATIONS_FOR_BUILDING_UOR_<U> has not been defined in this translation unit, and * One of the following holds true:
-
BB_WARN_ALL_DEPRECATIONS_FOR_TESTING_ONLYhas been defined, or -
An explicit deprecation threshold has been defined for UOR
Uand that threshold is greater than or equal to versionM.N, or -
An explicit deprecation threshold has not been defined for UOR
U, the versioning package for UORUdefines<U>_VERSION_MAJORand<U>_VERSION_MINOR, and the version so designated is greater than versionM.N.
Parameters
Name |
Description |
U |
UOR whose deprecations are queried |
M |
major version number of the deprecation |
N |
minor version number of the deprecation |
Created with MrDocs