[#BDLB_SCOPEEXIT_GUARD]
= BDLB&lowbar;SCOPEEXIT&lowbar;GUARD
:mrdocs:

Create a local variable with a generated unique name and with a type that is an instantiation of `bdlb&colon;&colon;ScopeExit` initialized with the specified `EXIT&lowbar;FUNC`&period; Note that the specific type of `bdlb&colon;&colon;ScopeExit` used will depend on available language features&period; The behavior is undefined if this macro is used (expanded) more than once on the same source line&period; Note that using this macro in another macro more than once is equivalent to using it more than once on the same source line&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;scopeexit&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define BDLB&lowbar;SCOPEEXIT&lowbar;GUARD(EXIT&lowbar;FUNC)

----


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