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