1 2 3 4 5 6 7 8 9
// Define a debug_println macro that only prints when ZYGA_DEBUG is set #[macro_export] macro_rules! debug_println { ($($arg:tt)*) => { if std::env::var("ZYGA_DEBUG").is_ok() { println!($($arg)*); } } }