#include <folly/Optional.h>
#include <folly/io/IOBuf.h>
#include <sstream>
#include <string>
Go to the source code of this file.
|
#define | CHECK_LOG_AND_THROW(CONDITION, LOG_LEVEL, EXCEPTION) |
|
#define | CHECK_LOG_AND_THROW_LT(X, Y, LOG_LEVEL, EXCEPTION) CHECK_LOG_AND_THROW((X) < (Y), LOG_LEVEL, EXCEPTION) |
|
#define | CHECK_LOG_AND_THROW_LE(X, Y, LOG_LEVEL, EXCEPTION) CHECK_LOG_AND_THROW((X) <= (Y), LOG_LEVEL, EXCEPTION) |
|
#define | CHECK_LOG_AND_THROW_GT(X, Y, LOG_LEVEL, EXCEPTION) CHECK_LOG_AND_THROW((X) > (Y), LOG_LEVEL, EXCEPTION) |
|
#define | CHECK_LOG_AND_THROW_GE(X, Y, LOG_LEVEL, EXCEPTION) CHECK_LOG_AND_THROW((X) >= (Y), LOG_LEVEL, EXCEPTION) |
|
#define | CHECK_LOG_AND_THROW_EQ(X, Y, LOG_LEVEL, EXCEPTION) CHECK_LOG_AND_THROW((X) == (Y), LOG_LEVEL, EXCEPTION) |
|
#define | CHECK_LOG_AND_THROW_NE(X, Y, LOG_LEVEL, EXCEPTION) CHECK_LOG_AND_THROW((X) != (Y), LOG_LEVEL, EXCEPTION) |
|
#define | CHECK_LOG_AND_THROW_NOT_NULL(X, LOG_LEVEL, EXCEPTION) CHECK_LOG_AND_THROW((X) != nullptr, LOG_LEVEL, EXCEPTION) |
|
#define | CHECK_LOG_AND_THROW_NULL(X, LOG_LEVEL, EXCEPTION) CHECK_LOG_AND_THROW((X) == nullptr, LOG_LEVEL, EXCEPTION) |
|
#define CHECK_LOG_AND_THROW |
( |
|
CONDITION, |
|
|
|
LOG_LEVEL, |
|
|
|
EXCEPTION |
|
) |
| |
Value:(StackTracePrinterWithException<EXCEPTION>( \
(CONDITION), \
"Check failed \"" #CONDITION "\": ", \
__FILE__, \
__LINE__, \
google::GLOG_##LOG_LEVEL)).
stream()
StreamCodecFactory stream
Definition at line 82 of file Logging.h.
Referenced by TEST_F().
#define CHECK_LOG_AND_THROW_EQ |
( |
|
X, |
|
|
|
Y, |
|
|
|
LOG_LEVEL, |
|
|
|
EXCEPTION |
|
) |
| CHECK_LOG_AND_THROW((X) == (Y), LOG_LEVEL, EXCEPTION) |
#define CHECK_LOG_AND_THROW_GE |
( |
|
X, |
|
|
|
Y, |
|
|
|
LOG_LEVEL, |
|
|
|
EXCEPTION |
|
) |
| CHECK_LOG_AND_THROW((X) >= (Y), LOG_LEVEL, EXCEPTION) |
#define CHECK_LOG_AND_THROW_GT |
( |
|
X, |
|
|
|
Y, |
|
|
|
LOG_LEVEL, |
|
|
|
EXCEPTION |
|
) |
| CHECK_LOG_AND_THROW((X) > (Y), LOG_LEVEL, EXCEPTION) |
#define CHECK_LOG_AND_THROW_LE |
( |
|
X, |
|
|
|
Y, |
|
|
|
LOG_LEVEL, |
|
|
|
EXCEPTION |
|
) |
| CHECK_LOG_AND_THROW((X) <= (Y), LOG_LEVEL, EXCEPTION) |
#define CHECK_LOG_AND_THROW_LT |
( |
|
X, |
|
|
|
Y, |
|
|
|
LOG_LEVEL, |
|
|
|
EXCEPTION |
|
) |
| CHECK_LOG_AND_THROW((X) < (Y), LOG_LEVEL, EXCEPTION) |
#define CHECK_LOG_AND_THROW_NE |
( |
|
X, |
|
|
|
Y, |
|
|
|
LOG_LEVEL, |
|
|
|
EXCEPTION |
|
) |
| CHECK_LOG_AND_THROW((X) != (Y), LOG_LEVEL, EXCEPTION) |