Convert CHECK macro to ABSL_CHECK.
Chrome can't use Absl's CHECK because of collisions with its own version. PiperOrigin-RevId: 561740965
This commit is contained in:
committed by
Copybara-Service
parent
30802b80cd
commit
7c2d654d67
@@ -47,6 +47,7 @@
|
||||
#include <cmath>
|
||||
#include <string>
|
||||
|
||||
#include "absl/log/absl_check.h"
|
||||
#include "mediapipe/framework/deps/safe_int.h"
|
||||
#include "mediapipe/framework/port/integral_types.h"
|
||||
#include "mediapipe/framework/port/logging.h"
|
||||
@@ -270,14 +271,14 @@ std::ostream& operator<<(std::ostream& os, TimestampDiff arg);
|
||||
inline Timestamp::Timestamp() : timestamp_(kint64min) {}
|
||||
|
||||
inline Timestamp::Timestamp(int64 timestamp) : timestamp_(timestamp) {
|
||||
CHECK(!IsSpecialValue())
|
||||
ABSL_CHECK(!IsSpecialValue())
|
||||
<< "Cannot directly create a Timestamp with a special value: "
|
||||
<< CreateNoErrorChecking(timestamp);
|
||||
}
|
||||
|
||||
inline Timestamp::Timestamp(TimestampBaseType timestamp)
|
||||
: timestamp_(timestamp) {
|
||||
CHECK(!IsSpecialValue())
|
||||
ABSL_CHECK(!IsSpecialValue())
|
||||
<< "Cannot directly create a Timestamp with a special value: "
|
||||
<< CreateNoErrorChecking(timestamp.value());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user