Macro si_trace_print::ef2x

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

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::{efn, efx};
use si_trace_print::ef2x;
fn func1() {
    ef2x!("hello");
}
fn main() {
    efn!();
    func1();
    efx!();
}

prints

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

Uses sx().