Skip to content
Snippets Groups Projects
Commit 7ff0fdb4 authored by Alex Crichton's avatar Alex Crichton
Browse files

Tweak macros module

parent 31504843
No related branches found
No related tags found
No related merge requests found
//! A macro for defining #[cfg] if-else statements. //! A macro for defining #[cfg] if-else statements.
//! //!
//! The macro provided by this crate, `cfg_if`, is similar to the `if/elif` C //! This is similar to the `if/elif` C preprocessor macro by allowing definition
//! preprocessor macro by allowing definition of a cascade of `#[cfg]` cases, //! of a cascade of `#[cfg]` cases, emitting the implementation which matches
//! emitting the implementation which matches first. //! first.
//! //!
//! This allows you to conveniently provide a long list #[cfg]'d blocks of code //! This allows you to conveniently provide a long list #[cfg]'d blocks of code
//! without having to rewrite each clause multiple times. //! without having to rewrite each clause multiple times.
...@@ -21,7 +21,6 @@ macro_rules! cfg_if { ...@@ -21,7 +21,6 @@ macro_rules! cfg_if {
} }
} }
#[doc(hidden)]
macro_rules! __cfg_if_items { macro_rules! __cfg_if_items {
(($($not:meta,)*) ; ) => {}; (($($not:meta,)*) ; ) => {};
(($($not:meta,)*) ; ( ($($m:meta),*) ($($it:item)*) ), $($rest:tt)*) => { (($($not:meta,)*) ; ( ($($m:meta),*) ($($it:item)*) ), $($rest:tt)*) => {
...@@ -30,7 +29,6 @@ macro_rules! __cfg_if_items { ...@@ -30,7 +29,6 @@ macro_rules! __cfg_if_items {
} }
} }
#[doc(hidden)]
macro_rules! __cfg_if_apply { macro_rules! __cfg_if_apply {
($m:meta, $($it:item)*) => { ($m:meta, $($it:item)*) => {
$(#[$m] $it)* $(#[$m] $it)*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment