referrerpolicy=no-referrer-when-downgrade

Macro pallet_nfts::runtime_benchmarks_enabled

source ·
macro_rules! runtime_benchmarks_enabled {
    ($($input:tt)*) => { ... };
}
Expand description

Enable/disable the given code depending on feature = "runtime-benchmarks" being enabled for the crate or not.

§Example

// Will add the code depending on the feature being enabled or not.
runtime_benchmarks_enabled!( println!("Hello") )