#include "MRMeshFwd.h"
#include "MRPch/MRBindingMacros.h"
#include "MRPch/MRExpected.h"
#include <string>
Go to the source code of this file.
|
#define | MR_RETURN_IF_UNEXPECTED(expr) |
| Exits the current function with an error if the given expression contains an error.
|
|
|
template<class T , class E = std::string> |
using | MR::Expected = tl::expected<T, E> |
|
◆ MR_RETURN_IF_UNEXPECTED
#define MR_RETURN_IF_UNEXPECTED |
( |
| expr | ) |
|
Value: if ( auto&& res = ( expr ); !res ) \
return unexpected( std::move( res.error() ) );
Exits the current function with an error if the given expression contains an error.