Macro si_trace_print::dpfx

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

debug println! in a function when exiting.

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

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

prints

→main:
    ←func1: hello
←main:

Uses sx().

For debug builds.