trigger_error

Macro trigger_error 

Source
macro_rules! trigger_error {
    ($e:expr) => { ... };
}
Expand description

Trigger a Matlab error

Note that this macro diverges, as it returns control to the Matlab prompt. This divergent behaviour prevents destructors from running, and therefore calling this method may leak memory. Consider returning from your entrypoint with a rustmex::Result::Err instead.