XDCHECK_EQ

Assert a comparison relationship between two arguments in debug builds.

Synopsis

Declared in <folly/logging/xlog.h>

#define XDCHECK_EQ(arg1, arg2, ...)

Description

When NDEBUG is not set these macros behaves like the corresponding XCHECK_XX() versions (XCHECK_EQ(), XCHECK_NE(), etc).

When NDEBUG is defined these statements are not evaluated and will never log.

Parameters

NameDescription
arg1The left-hand value to compare.
arg2The right-hand value to compare.