#ifndef MEDIAPIPE_DEPS_RET_CHECK_H_
#define MEDIAPIPE_DEPS_RET_CHECK_H_
#include "absl/base/optimization.h"
#include "mediapipe/framework/deps/status_builder.h"
#include "mediapipe/framework/deps/status_macros.h"
namespace mediapipe {
mediapipe::StatusBuilder RetCheckFailSlowPath(
mediapipe::source_location location);
mediapipe::StatusBuilder RetCheckFailSlowPath(
mediapipe::source_location location, const char* condition);
mediapipe::StatusBuilder RetCheckFailSlowPath(
mediapipe::source_location location, const char* condition,
const absl::Status& status);
inline StatusBuilder RetCheckImpl(const absl::Status& status,
const char* condition,
mediapipe::source_location location) { … }
}
#define RET_CHECK(cond) …
#define RET_CHECK_OK(status) …
#define RET_CHECK_FAIL() …
#define MEDIAPIPE_INTERNAL_RET_CHECK_OP(name, op, lhs, rhs) …
#define RET_CHECK_EQ(lhs, rhs) …
#define RET_CHECK_NE(lhs, rhs) …
#define RET_CHECK_LE(lhs, rhs) …
#define RET_CHECK_LT(lhs, rhs) …
#define RET_CHECK_GE(lhs, rhs) …
#define RET_CHECK_GT(lhs, rhs) …
#endif