1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
macro_rules! cfg_debug_stack {
    (if #[debug_assertions] { $($with:tt)* }) => {
        #[cfg(debug_assertions)]
        {
            $($with)*
        }
    };
    (if #[debug_assertions] { $($with:tt)* } else { $($without:tt)* }) => {
        #[cfg(debug_assertions)]
        {
            $($with)*
        }
        #[cfg(not(debug_assertions))]
        {
            $($without)*
        }
    };
}