加点描述

This commit is contained in:
shenjack-5600u 2024-01-29 11:53:18 +08:00
parent f410eb7199
commit e0eb286ae5
Signed by: shenjack
GPG Key ID: FDF9864E11C7E79F

View File

@ -114,12 +114,14 @@ pub fn avro_data_to_file_list(data: Vec<u8>) -> Option<Vec<SyncFile>> {
#[macro_export] #[macro_export]
macro_rules! fatal { macro_rules! fatal {
// 正常输入两组信息
(($($arg1:tt)+), ($($arg2:tt)+)) => { (($($arg1:tt)+), ($($arg2:tt)+)) => {
use log::error; use log::error;
// error!() + panic!() // error!() + panic!()
error!($($arg1)+); error!($($arg1)+);
panic!($($arg2)+); panic!($($arg2)+);
}; };
// 如果只输入了一组
($($arg:tt)+) => { ($($arg:tt)+) => {
use log::error; use log::error;
// error!() + panic!() // error!() + panic!()