1 //! Macros used on ouch.
3 /// Macro that prints \[INFO\] messages, wraps [`println`].
7 $crate::macros::_info_helper();
12 /// Helper to display "\[INFO\]", colored yellow
13 pub fn _info_helper() {
14 use crate::utils::colors::{RESET, YELLOW};
16 print!("{}[INFO]{} ", *YELLOW, *RESET);
19 /// Macro that prints \[WARNING\] messages, wraps [`println`].
21 macro_rules! warning {
23 $crate::macros::_warning_helper();
28 /// Helper to display "\[WARNING\]", colored orange
29 pub fn _warning_helper() {
30 use crate::utils::colors::{ORANGE, RESET};
32 print!("{}[WARNING]{} ", *ORANGE, *RESET);