XCHECK_EQ

Assert a comparison relationship between two arguments.

Synopsis

Declared in <folly/logging/xlog.h>

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

Description

If the comparison check fails the values of both expressions being compared will be included in the failure message. This is the main benefit of using these specific comparison macros over XCHECK(). XCHECK() will simply log that the expression evaluated was false, while these macros include the specific values being compared.

Parameters

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