1 // Copyright 2016 - 2018 Ulrik Sverdrup "bluss" 2 // 3 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 4 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 5 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 6 // option. This file may not be copied, modified, or distributed 7 // except according to those terms. 8 9 // for debugging -- like println during debugging 10 macro_rules! dprint { 11 ($($t:tt)*) => { 12 debug!(println!($($t)*)) 13 } 14 } 15 16 #[cfg(feature = "use_debug")] 17 macro_rules! debug { 18 ($e:expr) => { 19 $e; 20 } 21 } 22 23 #[cfg(not(feature = "use_debug"))] 24 macro_rules! debug { 25 ($e:expr) => { 26 } 27 } 28 29