GitXplorerGitXplorer
c

sensible-dbg

public
3 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
ced49557e9835e2679bb5535a6c21a7f57645d3d

Remove condescending remark.

ccauebs committed 6 years ago
Unverified
3c67f83fe95e5e5efe9de289ede3e61b86de41e8

Initial commit.

ccauebs committed 6 years ago

README

The README file for this repository.

sensible-dbg

If you read the discussion on std's new dbg! macro, you'll find that there are good reasons why it shouldn't affect release builds. As a silent protest against the decision, I made my own version.

Usage

use sensible_dbg::dbg;

fn factorial(n: u32) -> u32 {
    if dbg!(n <= 1) {
        dbg!(1)
    } else {
        dbg!(n * factorial(n - 1))
    }
}