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

Name

Description

arg1

The left‐hand value to compare.

arg2

The right‐hand value to compare.

Created with MrDocs