sp_api

Macro std_disabled

Source
macro_rules! std_disabled {
    ($($input:tt)*) => { ... };
}
Expand description

Enable/disable the given code depending on not(feature = "std") being enabled for the crate or not.

ยงExample

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