Macro si_trace_print::pf2x

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

println! in a function plus two namespace levels when exiting.

To signify exiting a function. Use this as the last println! in a function.

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

prints

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

Uses sx().