OMNI_GRAPH_EXEC_CAST_OR_FATAL#
-
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 castobj_
to an interface pointer of typetype_
.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.