This crate provides final_fn macro, what executes given code when leaving code block.
```rust use finalfn::finalfn;
fn main() { final_fn!( println!("End of main!") );
println!("Hello world!");
} ```
You can also pass variables ```rust use finalfn::finalfn;
fn main() { let x = 56;
final_fn(
println!("{x}")
);
println!("Hello world");
} ```