OMNI_GRAPH_EXEC_CAST_OR_FATAL

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

OMNI_GRAPH_EXEC_CAST_OR_FATAL(var_, type_, obj_)

Casts an object to the specified interface, terminating the application if the cast fails.

Calls omni::graph::exec::unstable::cast() on obj_, in an attempt to cast obj_ to an interface pointer of type type_.

The result of the operation is stored in var_, which is a variable allocated by this macro and useable any code called after the macro in the same scope.

If the cast fails, the application is terminated.