Macro si_trace_print::dpn

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

debug println! when entering.

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

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

prints

→main:
    →hello
←main:

Uses sn().

For debug builds.