2016-04-06 23:21:45 +00:00
|
|
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef PACKAGER_MEDIA_BASE_RCHECK_H_
|
|
|
|
#define PACKAGER_MEDIA_BASE_RCHECK_H_
|
|
|
|
|
2023-10-13 19:42:47 +00:00
|
|
|
#include <absl/log/log.h>
|
2016-04-06 23:21:45 +00:00
|
|
|
|
|
|
|
#define RCHECK(x) \
|
|
|
|
do { \
|
|
|
|
if (!(x)) { \
|
|
|
|
LOG(ERROR) << "Failure while processing: " << #x; \
|
|
|
|
return false; \
|
|
|
|
} \
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
#endif // PACKAGER_MEDIA_BASE_RCHECK_H_
|