GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
status_or.h File Reference
Include dependency graph for status_or.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  draco::StatusOr< T >

Namespaces

namespace  draco

Macros

#define DRACO_ASSIGN_OR_RETURN(lhs, expression)
#define DRACO_ASSIGN_OR_RETURN_IMPL_(statusor, lhs, expression, error_expr)

Macro Definition Documentation

◆ 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; /* error_expression may not use it */ \
return error_expr; \
} \
lhs = std::move(statusor).value();