macro_rules! scope_guard {
    ($dtor:expr) => { ... };
    ($dtor:expr, $arg:expr) => { ... };
    ($dtor:expr, $($args:expr),+) => { ... };
}
Expand description

Creates scope guard, allowing to supply plain function with arguments in addition to closures.