Macro si_trace_print::def2x

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

debug eprintln! in a function plus two namespace levels when exiting.

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

use si_trace_print::{defn, defx};
use si_trace_print::def2x;
fn func1() {
    def2x!("hello");
}
fn main() {
    defn!();
    func1();
    defx!();
}

prints

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

Uses sx().

For debug builds.