mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-12-11 17:58:52 -05:00
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
Add a link
Reference in a new issue