From 78fdb766da10fd5d9ffe803e02b18369efea1cbd Mon Sep 17 00:00:00 2001 From: Rosyid Haryadi Date: Sun, 16 Mar 2025 15:45:43 +0700 Subject: upd: git object. [not tested yet] --- src/utilities.rs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/utilities.rs') diff --git a/src/utilities.rs b/src/utilities.rs index bc78495..2c7a43f 100644 --- a/src/utilities.rs +++ b/src/utilities.rs @@ -5,10 +5,18 @@ pub type ConfigHashMap = HashMap>>; #[macro_export] macro_rules! die { - ($message:expr) => { - println!("{}", $message); - std::process::exit(1); - } + ($msg:expr) => { + { + println!("{}", $msg); + std::process::exit(1); + } + }; + ($fmt:expr, $($args:tt)*) => { + { + println!($fmt, $($args)*); + std::process::exit(1); + } + }; } #[macro_export] -- cgit v1.2.3-70-g09d2