1
0
Fork 0

Add a nih_warn!() macro

This commit is contained in:
Robbert van der Helm 2023-02-19 22:56:35 +01:00
parent 401bb95187
commit 36c48157db

View file

@ -29,7 +29,17 @@ macro_rules! nih_log {
#[doc(inline)] #[doc(inline)]
pub use nih_log; pub use nih_log;
/// Similar to `nih_log!()`, more scream-y. Used for printing fatal errors. /// Similar to `nih_log!()`, but less subtle. Used for printing warnings.
#[macro_export]
macro_rules! nih_warn {
($($args:tt)*) => (
$crate::log::warn!($($args)*)
);
}
#[doc(inline)]
pub use nih_warn;
/// Similar to `nih_log!()`, but more scream-y. Used for printing fatal errors.
#[macro_export] #[macro_export]
macro_rules! nih_error { macro_rules! nih_error {
($($args:tt)*) => ( ($($args:tt)*) => (