[#BSLMA_USESBSLMAALLOCATOR_DEPRECATE_IF]
= BSLMA&lowbar;USESBSLMAALLOCATOR&lowbar;DEPRECATE&lowbar;IF
:mrdocs:

Produce a deprecation warning if the specified `COND` is true&period;

== Synopsis

Declared in `&lt;bslma&lowbar;usesbslmaallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define BSLMA&lowbar;USESBSLMAALLOCATOR&lowbar;DEPRECATE&lowbar;IF(COND, MSG)

----

== Description

On platforms that support a deprecation attribute, produce a deprecation warning if the specified `COND` is true, otherwise do nothing&period; The specified `MSG` is ignored, but must be a string literal and should describe why the condition (if true) is undesirable&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *COND*
| condition that triggers the deprecation warning when true
| *MSG*
| string literal describing why the condition is undesirable
|===


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