Macro si_trace_print::pf1n

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

println! in a function plus one namespace level when entering.

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

use si_trace_print::{pfn, pfx};
use si_trace_print::pf1n;
fn func1() {
    pf1n!("hello");
}
fn main() {
    pfn!();
    func1();
    pfx!();
}

prints

→main:
    →main::func1: hello
←main:

Uses sn().