mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-12 08:31:21 +00:00
Merge remote-tracking branch 'origin/master' into feature/metering
This commit is contained in:
@ -18,6 +18,24 @@ macro_rules! debug {
|
||||
($fmt:expr, $($arg:tt)*) => {};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
#[cfg(feature = "trace")]
|
||||
macro_rules! trace {
|
||||
($fmt:expr) => {
|
||||
debug!($fmt)
|
||||
};
|
||||
($fmt:expr, $($arg:tt)*) => {
|
||||
debug!($fmt, $($arg)*);
|
||||
}
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
#[cfg(not(feature = "trace"))]
|
||||
macro_rules! trace {
|
||||
($fmt:expr) => {};
|
||||
($fmt:expr, $($arg:tt)*) => {};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! func {
|
||||
($func:path) => {{
|
||||
|
Reference in New Issue
Block a user