diff --git a/src/prelude.rs b/src/prelude.rs index 4fe9e9c..e4d7bac 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -6,13 +6,13 @@ pub type BoxResult = std::result::Result>; // so heres labelprint as a macro #[macro_export] macro_rules! lprint { - ($expr:expr) => { + ($expr:expr) => {{ let ___this_file = std::file!(); let ___line = std::line!(); // let ___column = column!(); println!("[{}:{}] {}", ___this_file, ___line, $expr); - }; - ($expr:expr, $($arg:tt)*) => { + }}; + ($expr:expr, $($arg:tt)*) => {{ lprint!(format!($expr, $($arg)*)); - }; + }}; }