allow expression to defer macro

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-08-09 02:58:10 +00:00
parent 0e56d1c7a2
commit 992f725362

View file

@ -13,4 +13,10 @@ macro_rules! defer {
closure: || $body,
};
};
($body:expr) => {
$crate::defer! {{
$body
}}
};
}