1 2 3 4 5 6 7 8 9 10 11 12 13
pub const DEBUG: bool = false; // A wrapper around println that I can turn on and off to debug the code #[macro_export] macro_rules! print_debug { ($($arg:tt)*) => {{ if crate::debug_utils::DEBUG { println!($($arg)*); } }}; }