Macro sp_core::generate_feature_enabled_macro
source ยท macro_rules! generate_feature_enabled_macro { ( $macro_name:ident, $feature_name:meta, $d:tt ) => { ... }; }
Expand description
Generates a macro for checking if a certain feature is enabled.
These feature checking macros can be used to conditionally enable/disable code in a dependent crate based on a feature in the crate where the macro is called.