25 lines
384 B
Rust
25 lines
384 B
Rust
#[macro_export]
|
|
macro_rules! rs_println {
|
|
($($arg:tt)*) => {
|
|
println!("{}RS{} - {}",
|
|
"\x1b[31m",
|
|
"\x1b[0m",
|
|
format!($($arg)*)
|
|
);
|
|
};
|
|
}
|
|
|
|
|
|
#[macro_export]
|
|
macro_rules! rs_errln {
|
|
($($arg:tt)*) => {
|
|
println!("{}ERROR{} RS{} - {}",
|
|
"\x1b[41m",
|
|
"\x1b[0m\x1b[31m",
|
|
"\x1b[0m",
|
|
format!($($arg)*)
|
|
);
|
|
process::exit(-1);
|
|
};
|
|
}
|