allow expression to defer macro
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -13,4 +13,10 @@ macro_rules! defer {
|
||||
closure: || $body,
|
||||
};
|
||||
};
|
||||
|
||||
($body:expr) => {
|
||||
$crate::defer! {{
|
||||
$body
|
||||
}}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user