Macro si_trace_print::def1n
source · macro_rules! def1n { ( $($args:tt)* ) => { ... }; }
Expand description
debug eprintln! in a function plus one namespace level when entering.
To signify entering a function.
Use this as the first eprintln!
in a function.
use si_trace_print::{defn, defx};
use si_trace_print::def1n;
fn func1() {
def1n!("hello");
}
fn main() {
defn!();
func1();
defx!();
}
prints
→main:
→main::func1: hello
←main:
Uses sn()
.
For debug builds.