OMNI_GRAPH_EXEC_RETURN_EXPECTED

Defined in omni/graph/exec/unstable/Assert.h

OMNI_GRAPH_EXEC_RETURN_EXPECTED(expected_, unexpected_)

Returns an omni::expected with the proper expected or unexpected value.

This is a helper macro that cuts down of the amount of boiler-plate code needed when returning omni::expected.

expected_ can be any type.

unexpected_ must be a omni::core::Result.

If unexpected_ passes OMNI_SUCCEEDED(), exepected_ is returned as the expected value. Otherwise, unexpected_ is returned as the unexpected value.