Sha256: 3e4b39252bfa471fad384160a43f113ebfec7bec46a85d16f006622881dd2081

Contents?: true

Size: 423 Bytes

Versions: 53

Compression:

Stored size: 423 Bytes

Contents

// Some feature combinations result in some of these macros never being used.
// Which is fine. Just squash the warnings.
#![allow(unused_macros)]

macro_rules! log {
    ($($tt:tt)*) => {
        #[cfg(feature = "logging")]
        {
            $($tt)*
        }
    }
}

macro_rules! debug {
    ($($tt:tt)*) => { log!(log::debug!($($tt)*)) }
}

macro_rules! trace {
    ($($tt:tt)*) => { log!(log::trace!($($tt)*)) }
}

Version data entries

53 entries across 30 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/regex-automata-0.4.9/src/macros.rs
wasmtime-29.0.0 ./ext/cargo-vendor/memchr-2.7.4/src/macros.rs
wasmtime-28.0.0 ./ext/cargo-vendor/regex-automata-0.4.9/src/macros.rs
wasmtime-28.0.0 ./ext/cargo-vendor/memchr-2.7.4/src/macros.rs
wasmtime-27.0.0 ./ext/cargo-vendor/memchr-2.7.4/src/macros.rs
wasmtime-27.0.0 ./ext/cargo-vendor/regex-automata-0.4.9/src/macros.rs
wasmtime-26.0.0 ./ext/cargo-vendor/memchr-2.7.4/src/macros.rs
wasmtime-26.0.0 ./ext/cargo-vendor/regex-automata-0.4.8/src/macros.rs
wasmtime-25.0.2 ./ext/cargo-vendor/regex-automata-0.4.7/src/macros.rs
wasmtime-25.0.2 ./ext/cargo-vendor/memchr-2.7.4/src/macros.rs
wasmtime-25.0.1 ./ext/cargo-vendor/memchr-2.7.4/src/macros.rs
wasmtime-25.0.1 ./ext/cargo-vendor/regex-automata-0.4.7/src/macros.rs
wasmtime-25.0.0 ./ext/cargo-vendor/memchr-2.7.4/src/macros.rs
wasmtime-25.0.0 ./ext/cargo-vendor/regex-automata-0.4.7/src/macros.rs
wasmtime-24.0.0 ./ext/cargo-vendor/regex-automata-0.4.7/src/macros.rs
wasmtime-24.0.0 ./ext/cargo-vendor/memchr-2.7.4/src/macros.rs
wasmtime-23.0.2 ./ext/cargo-vendor/regex-automata-0.4.3/src/macros.rs
wasmtime-23.0.2 ./ext/cargo-vendor/memchr-2.7.1/src/macros.rs
wasmtime-22.0.0 ./ext/cargo-vendor/regex-automata-0.4.3/src/macros.rs
wasmtime-22.0.0 ./ext/cargo-vendor/memchr-2.7.1/src/macros.rs