allow expression to defer macro
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
0e56d1c7a2
commit
992f725362
1 changed files with 6 additions and 0 deletions
|
@ -13,4 +13,10 @@ macro_rules! defer {
|
|||
closure: || $body,
|
||||
};
|
||||
};
|
||||
|
||||
($body:expr) => {
|
||||
$crate::defer! {{
|
||||
$body
|
||||
}}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue