Macro si_trace_print::dpfn

source ·
macro_rules! dpfn {
    (
        $($args:tt)*
    ) => { ... };
}
Expand description

debug println! in a function when entering.

To signify entering a function. Use this as the first println! in a function.

use si_trace_print::{dpfn, dpfx};
fn func1() {
    dpfn!("hello");
}
fn main() {
    dpfn!();
    func1();
    dpfx!();
}

prints

→main:
    →func1: hello
←main:

Uses sn().

For debug builds.