fixed bugs when not using shorturl
This commit is contained in:
@@ -24,6 +24,19 @@ macro_rules! rs_errln {
|
||||
}
|
||||
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! rs_warnln {
|
||||
($($arg:tt)*) => {
|
||||
println!("{}WARNING{} RS - {}{}",
|
||||
"\x1b[33m",
|
||||
"\x1b[0m\x1b[31m",
|
||||
format!($($arg)*),
|
||||
"\x1b[0m"
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! errln {
|
||||
($($arg:tt)*) => {
|
||||
@@ -37,6 +50,18 @@ macro_rules! errln {
|
||||
}
|
||||
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! warnln {
|
||||
($($arg:tt)*) => {
|
||||
println!("{}WARNING{} - {}",
|
||||
"\x1b[33m",
|
||||
"\x1b[0m",
|
||||
format!($($arg)*)
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! lang {
|
||||
($key:expr) => {
|
||||
|
||||
Reference in New Issue
Block a user