#[cvlr_hook_on_exit]Expand description
-
This macro is used to insert a hook at the end of a function.
-
If the function returns a value, the hook is inserted before the return statement.
ยงExample
-
#[cvlr_hook_on_exit(hook())] fn t1() { assert_eq!(1, 1); assert_eq!(2, 2); // hook inserted here }
expands to
fn t1() { assert_eq!(1, 1); assert_eq!(2, 2); hook() }