Macro si_trace_print::dpfo
source · macro_rules! dpfo { ( $($args:tt)* ) => { ... }; }
Expand description
debug println! in a function with offset.
To signify printing within a function.
Use to println!
in a function.
use si_trace_print::{dpfn, dpfx};
use si_trace_print::dpfo;
fn func1() {
dpfo!("hello");
}
fn main() {
dpfn!();
func1();
dpfx!();
}
prints
→main:
func1: hello
←main:
Uses so()
.
For debug builds.