Macro si_trace_print::dpf2x
source · macro_rules! dpf2x { ( $($args:tt)* ) => { ... }; }
Expand description
debug println! in a function plus two namespace levels when exiting.
To signify exiting a function.
Use this as the last println!
in a function.
use si_trace_print::{dpfn, dpfx};
use si_trace_print::dpf2x;
fn func1() {
dpf2x!("hello");
}
fn main() {
dpfn!();
func1();
dpfx!();
}
prints
→main:
←si_trace_print::main::func1: hello
←main:
Uses sx()
.
For debug builds.