[#XDCHECK]
= XDCHECK
:mrdocs:

Assert that a condition is true in debug builds only&period;

== Synopsis

Declared in `&lt;folly&sol;logging&sol;xlog&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define XDCHECK(cond, ...)

----

== Description

When NDEBUG is not defined this behaves like XCHECK()&period; When NDEBUG is defined XDCHECK statements are not evaluated and will never log&period;

You can use `XLOG&lowbar;IF(DFATAL, condition)` instead if you want the condition to be evaluated in release builds but log a message without crashing the program&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cond*
| The condition expression that must evaluate to true&period;
|===


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