[#BSLS_DEPRECATE_IS_ACTIVE]
= BSLS&lowbar;DEPRECATE&lowbar;IS&lowbar;ACTIVE
:mrdocs:

Expand to true if deprecations are enforced for version `M&period;N` of UOR `U`&period;

== Synopsis

Declared in `&lt;bsls&lowbar;deprecate&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define BSLS&lowbar;DEPRECATE&lowbar;IS&lowbar;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&period;N` of the specified UOR `U`, and expand to an expression evaluating to `false` otherwise&period; Deprecations will be enforced for version `M&period;N` of UOR `U` if&colon; &ast; `BB&lowbar;SILENCE&lowbar;DEPRECATIONS&lowbar;&lt;U&gt;_&lt;M&gt;_&lt;N&gt;` has not been defined in this translation unit, and &ast; `BB&lowbar;SILENCE&lowbar;DEPRECATIONS&lowbar;FOR&lowbar;BUILDING&lowbar;UOR&lowbar;&lt;U&gt;` has not been defined in this translation unit, and &ast; One of the following holds true&colon;

* `BB&lowbar;WARN&lowbar;ALL&lowbar;DEPRECATIONS&lowbar;FOR&lowbar;TESTING&lowbar;ONLY` has been defined, or
* An explicit deprecation threshold has been defined for UOR `U` and that threshold is greater than or equal to version `M&period;N`, or
* An explicit deprecation threshold has _not_ been defined for UOR `U`, the versioning package for UOR `U` defines `&lt;U&gt;&lowbar;VERSION&lowbar;MAJOR` and `&lt;U&gt;&lowbar;VERSION&lowbar;MINOR`, and the version so designated is greater than version `M&period;N`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *U*
| UOR whose deprecations are queried
| *M*
| major version number of the deprecation
| *N*
| minor version number of the deprecation
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
