Go to the source code of this file.
◆ DRACO_ASSIGN_OR_RETURN
| #define DRACO_ASSIGN_OR_RETURN |
( |
| lhs, |
|
|
| expression ) |
Value:
lhs, expression, _status)
#define DRACO_MACROS_IMPL_CONCAT_(x, y)
Definition macros.h:92
#define DRACO_ASSIGN_OR_RETURN_IMPL_(statusor, lhs, expression, error_expr)
Definition status_or.h:70
◆ DRACO_ASSIGN_OR_RETURN_IMPL_
| #define DRACO_ASSIGN_OR_RETURN_IMPL_ |
( |
| statusor, |
|
|
| lhs, |
|
|
| expression, |
|
|
| error_expr ) |
Value: auto statusor = (expression); \
if (!statusor.ok()) { \
auto _status = std::move(statusor.status()); \
(void)_status; \
return error_expr; \
} \
lhs = std::move(statusor).value();