webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Namespaces | Macros | Functions
status_macros.h File Reference
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/status.h>
#include <google/protobuf/stubs/statusor.h>

Go to the source code of this file.

Namespaces

 google
 
 google::protobuf
 
 google::protobuf::util
 

Macros

#define RETURN_IF_ERROR(expr)
 
#define STATUS_MACROS_CONCAT_NAME_INNER(x, y)   x##y
 
#define STATUS_MACROS_CONCAT_NAME(x, y)   STATUS_MACROS_CONCAT_NAME_INNER(x, y)
 
#define ASSIGN_OR_RETURN_IMPL(status, lhs, rexpr)
 
#define ASSIGN_OR_RETURN(lhs, rexpr)
 

Functions

template<typename T >
Status google::protobuf::util::DoAssignOrReturn (T &lhs, StatusOr< T > result)
 

Macro Definition Documentation

◆ ASSIGN_OR_RETURN

#define ASSIGN_OR_RETURN (   lhs,
  rexpr 
)
Value:
STATUS_MACROS_CONCAT_NAME(_status_or_value, __COUNTER__), lhs, rexpr);
#define ASSIGN_OR_RETURN_IMPL(status, lhs, rexpr)
Definition: status_macros.h:68
#define STATUS_MACROS_CONCAT_NAME(x, y)
Definition: status_macros.h:58

◆ ASSIGN_OR_RETURN_IMPL

#define ASSIGN_OR_RETURN_IMPL (   status,
  lhs,
  rexpr 
)
Value:
Status status = DoAssignOrReturn(lhs, (rexpr)); \
return
Definition: plot_neteq_delay.m:187
Definition: status.py:1
Status DoAssignOrReturn(T &lhs, StatusOr< T > result)
Definition: status_macros.h:61
#define GOOGLE_PREDICT_FALSE(x)
Definition: port.h:216

◆ RETURN_IF_ERROR

#define RETURN_IF_ERROR (   expr)
Value:
do { \
/* Using _status below to avoid capture problems if expr is "status". */ \
const ::google::protobuf::util::Status _status = (expr); \
if (GOOGLE_PREDICT_FALSE(!_status.ok())) return _status; \
} while (0)
while( $noTimeout||$timeoutMsecs > 0)
Definition: get-ping-data.php:12
return
Definition: plot_neteq_delay.m:187
#define GOOGLE_PREDICT_FALSE(x)
Definition: port.h:216

◆ STATUS_MACROS_CONCAT_NAME

#define STATUS_MACROS_CONCAT_NAME (   x,
  y 
)    STATUS_MACROS_CONCAT_NAME_INNER(x, y)

◆ STATUS_MACROS_CONCAT_NAME_INNER

#define STATUS_MACROS_CONCAT_NAME_INNER (   x,
  y 
)    x##y