py_executer_lib/macros.rs
1#[macro_export]
2macro_rules! error_println {
3 ($($arg:tt)*) => {
4 use colored::Colorize;
5 eprintln!("{}", format!(">>>ERROR - {}", format!($($arg)*)).red());
6 }
7}
8
9#[macro_export]
10macro_rules! warning_println {
11 ($($arg:tt)*) => {
12 use colored::Colorize;
13 println!("{}", format!(">>>WARNING - {}", format!($($arg)*)).yellow());
14 }
15}
16
17pub use error_println;
18pub use warning_println;