Macro si_trace_print::po

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

println! with offset.

To signify printing within a function. Use this to println! within a function.

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

prints

→main:
    hello
←main:

Uses so().