XCHECK

Assert that a condition is true.

Synopsis

Declared in <folly/logging/xlog.h>

#define XCHECK(cond, ...)

Description

This crashes the program with an XLOG(FATAL) message if the condition is false. Unlike assert() CHECK statements are always enabled, regardless of the setting of NDEBUG.

Parameters

NameDescription
condThe condition expression that must evaluate to true.