macro_rules! invoke_hooks {
(OnStream, $self_expr:expr $(, $arg:expr)* ) => { ... };
($hook_type:ident, $self_expr:expr $(, $arg:expr)* ) => { ... };
}
Expand description
Simple macro to consistently call hooks and clean up the code
macro_rules! invoke_hooks {
(OnStream, $self_expr:expr $(, $arg:expr)* ) => { ... };
($hook_type:ident, $self_expr:expr $(, $arg:expr)* ) => { ... };
}
Simple macro to consistently call hooks and clean up the code