1#[macro_export] 2macro_rules! debug_print { 3 ($($arg:tt)*) => { 4 #[cfg(debug_assertions)] 5 { 6 if std::env::var("DEBUG_LOG").is_ok() { 7 println!("[DEBUG] [{}:{}] {}", file!(), line!(), format_args!($($arg)*)); 8 } 9 } 10 }; 11}