1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-02 14:07:46 +00:00

refactor/uucore ~ improve crash!() (DRY use of exit!())

This commit is contained in:
Roy Ivy III 2021-06-30 22:18:13 -05:00 committed by Michael Debertol
parent 27c4530f3c
commit 065330c4ca

View file

@ -119,7 +119,7 @@ macro_rules! exit(
macro_rules! crash( macro_rules! crash(
($exit_code:expr, $($args:tt)+) => ({ ($exit_code:expr, $($args:tt)+) => ({
show_error!($($args)+); show_error!($($args)+);
::std::process::exit($exit_code) exit!($exit_code)
}) })
); );