1
0
Fork 0

Add an nih_trace!() macro

This commit is contained in:
Robbert van der Helm 2022-04-24 15:29:50 +02:00
parent 3264bee810
commit 54bab5ff6d
2 changed files with 10 additions and 0 deletions

View file

@ -15,6 +15,15 @@ macro_rules! nih_log {
); );
} }
/// The same as `nih_log!()`, but with source and thread information. Like the
/// `nih_debug_assert*!()` macros, this is only shown when compiling in debug mode.
#[macro_export]
macro_rules! nih_trace {
($($args:tt)*) => (
$crate::log::trace!($($args)*)
);
}
/// A `debug_assert!()` analogue that prints the error with line number information instead of /// A `debug_assert!()` analogue that prints the error with line number information instead of
/// panicking. /// panicking.
/// ///

View file

@ -5,6 +5,7 @@ pub use crate::nih_debug_assert_failure;
pub use crate::nih_debug_assert_ne; pub use crate::nih_debug_assert_ne;
pub use crate::nih_export_clap; pub use crate::nih_export_clap;
pub use crate::nih_log; pub use crate::nih_log;
pub use crate::nih_trace;
#[cfg(feature = "vst3")] #[cfg(feature = "vst3")]
pub use crate::nih_export_vst3; pub use crate::nih_export_vst3;