#[macro_export(local_inner_macros)]
macro_rules! notify_informational {
($typ:expr, $($arg:tt)+) => (notify!($crate::notifications::Priority::Informational, $typ, $($arg)+))
}
#[macro_export(local_inner_macros)]
macro_rules! notify_info {
($typ:expr, $($arg:tt)+) => (notify!($crate::notifications::Priority::Informational, $typ, $($arg)+))
}
#[macro_export(local_inner_macros)]
macro_rules! notify_low {
($typ:expr, $($arg:tt)+) => (notify!($crate::notifications::Priority::Low, $typ, $($arg)+))
}
#[macro_export(local_inner_macros)]
macro_rules! notify_medium {
($typ:expr, $($arg:tt)+) => (notify!($crate::notifications::Priority::Medium, $typ, $($arg)+))
}
#[macro_export(local_inner_macros)]
macro_rules! notify_high {
($typ:expr, $($arg:tt)+) => (notify!($crate::notifications::Priority::High, $typ, $($arg)+))
}
#[macro_export(local_inner_macros)]
macro_rules! notify_critical {
($typ:expr, $($arg:tt)+) => (notify!($crate::notifications::Priority::Critical, $typ, $($arg)+))
}
#[macro_export(local_inner_macros)]
macro_rules! notify {
($priority:expr, $typ:expr, $($arg:tt)+) => ({
let priority = $priority;
let typ = $typ;
let _ = $crate::notifications::NOTIFIER.with(|v| {
let notifier = v.borrow();
notifier.notify(priority,typ, std::module_path!(), std::file!(), std::line!(), std::borrow::Cow::Owned(std::format!($($arg)+)));
});
});
}