Changed formatting for crash!() and log!() file:line formatting

main
Michal 2 years ago
parent dac00071c4
commit 99e2fea49a

@ -17,14 +17,14 @@ macro_rules! info {
#[macro_export]
macro_rules! log {
($verbose:expr, $($arg:tt)+) => {
$crate::internal::strings::log_fn(&format!("{}:{} {}", file!(), line!(), format!($($arg)+)), $verbose);
$crate::internal::strings::log_fn(&format!("[{}:{}] {}", file!(), line!(), format!($($arg)+)), $verbose);
}
}
#[macro_export]
macro_rules! crash {
($exit_code:expr, $($arg:tt)+) => {
$crate::internal::strings::crash_fn(&format!("{}:{} {}", file!(), line!(), format!($($arg)+)), $exit_code)
$crate::internal::strings::crash_fn(&format!("[{}:{}] {}", file!(), line!(), format!($($arg)+)), $exit_code)
}
}

Loading…
Cancel
Save