Macro si_trace_print::dpñ

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

debug println! when entering and exiting.

To signify entering and exiting a function. Use this as the only println! in a function. Most suited for short functions.

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

prints

→main:
    ↔hello
←main:

Uses sñ().

For debug builds.