macro_rules! pfn {
(
$($args:tt)*
) => { ... };
}
Expand description
println! in a function when entering.
To signify entering a function.
Use this as the first println!
in a function.
use si_trace_print::{pfn, pfx};
fn func1() {
pfn!("hello");
}
fn main() {
pfn!();
func1();
pfx!();
}
prints
→main:
→func1: hello
←main:
Uses sn()
.