Macro sp_api::_std_enabled
source · macro_rules! _std_enabled { ($($input:tt)*) => { ... }; }
Expand description
Enable/disable the given code depending on
feature = "std"
being enabled for the crate or not.
Example
// Will add the code depending on the feature being enabled or not.
std_enabled!( println!("Hello") )