Macro si_trace_print::dpfñ
source · macro_rules! dpfñ { ( $($args:tt)* ) => { ... }; }
Expand description
debug println! in a function when entering and exiting.
To signify entering and exiting a function.
Use this as the only println!
in a function.
Most suited for short functions.
use si_trace_print::{dpfn, dpfx};
use si_trace_print::dpfñ;
fn func1() {
dpfñ!("hello");
}
fn main() {
dpfn!();
func1();
dpfx!();
}
prints
→main:
↔func1: hello
←main:
Uses sñ()
.
For debug builds.