11 releases (3 stable)
Uses old Rust 2015
1.1.1 | May 29, 2015 |
---|---|
0.8.0 | May 3, 2015 |
#8 in #enter
147 downloads per month
9KB
91 lines
A crate with printing macros.
These macros aims to provide a simple and lazy way to print formatted traces.
Simple example of usage:
#[macro_use(TRACE, ENTER)]
extern crate trace_macros;
fn double_var(var: i32) -> i32 {
ENTER!(var);
var * var
}
fn main() {
ENTER!();
TRACE!("I'm", "doing", "some", "lazy", "tracing");
TRACE!("Result:", double_var(2));
traceln!("2*2 = {}", double_var(2));
}