at_debug 0.1.0

Execute this statement in debug but not in release build.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![no_std]

#[cfg(debug_assertions)]
#[macro_export]
/// Execute this statement in debug but not in release build.
macro_rules! at_debug {
    ($statement:stmt) => {
        $statement;
    };
}

#[cfg(not(debug_assertions))]
#[macro_export]
/// Execute this statement in debug but not in release build.
macro_rules! at_debug {
    ($statement:stmt) => {};
}