Shaka Player Embedded
Classes | Namespaces | Macros
exception_or.h File Reference
#include <utility>
#include "shaka/variant.h"
#include "src/js/js_error.h"

Go to the source code of this file.

Classes

struct  shaka::ExceptionOr< T >
 
struct  shaka::ExceptionOr< void >
 

Namespaces

 shaka
 

Macros

#define RETURN_IF_ERROR(code)
 

Macro Definition Documentation

§ RETURN_IF_ERROR

#define RETURN_IF_ERROR (   code)
Value:
do { \
ExceptionOr<void> except = (code); \
if (holds_alternative<JsError>(except)) \
return get<JsError>(std::move(except)); \
} while (false)

Definition at line 25 of file exception_or.h.