1 #ifndef NET_TOOLS_FLIP_SERVER_OTHER_DEFINES 2 #define NET_TOOLS_FLIP_SERVER_OTHER_DEFINES 3 4 #define CHECK_EQ(X, Y) CHECK((X) == (Y)) 5 #define CHECK_NE(X, Y) CHECK((X) != (Y)) 6 #define CHECK_GE(X, Y) CHECK((X) >= (Y)) 7 #define CHECK_GT(X, Y) CHECK((X) > (Y)) 8 #define CHECK_LE(X, Y) CHECK((X) <= (Y)) 9 #define CHECK_LT(X, Y) CHECK((X) < (Y)) 10 11 class NullStream { 12 public: NullStream()13 NullStream() {} 14 template <typename T> 15 NullStream operator<<(T t) { return *this;} 16 }; 17 18 #define VLOG(X) NullStream() 19 #define DVLOG(X) NullStream() 20 21 22 #endif // NET_TOOLS_FLIP_SERVER_OTHER_DEFINES 23 24