Skip to main content

ltracef

Macro ltracef 

Source
macro_rules! ltracef {
    ($($arg:tt)*) => { ... };
}
Expand description

Formats and prints a trace message (TRACEF) if LOCAL_TRACE >= 1.

Equivalent to C++ LTRACEF.

ยงExamples

const LOCAL_TRACE: u32 = 0; // Edit to 1 when locally debugging this file

fn my_func(x: i32) {
    ltracef!("my_func called with x = {}\n", x);
}