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

Name

Description

arg1

The left‐hand value to compare.

arg2

The right‐hand value to compare.

Created with MrDocs