cvlr_hook_on_entry

Attribute Macro cvlr_hook_on_entry 

Source
#[cvlr_hook_on_entry]
Expand description
  • This macro is used to insert a hook at the start of a function.

  • §Example

  • #[cvlr_hook_on_entry(hook())] fn t1() { // hook inserted here println!(“t1”); }

    expands to

    fn t1() { hook(); println!(“t1”); }