mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-02 05:57:46 +00:00
refactor/uucore ~ improve crash!()
(DRY use of exit!()
)
This commit is contained in:
parent
27c4530f3c
commit
065330c4ca
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue