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
Loading
//! A macro for defining #[cfg] if-else statements.
//!
//! The macro provided by this crate, `cfg_if`, is similar to the `if/elif` C
//! preprocessor macro by allowing definition of a cascade of `#[cfg]` cases,
//! emitting the implementation which matches first.
//! This is similar to the `if/elif` C preprocessor macro by allowing definition
//! of a cascade of `#[cfg]` cases, emitting the implementation which matches
//! first.
//!
//! This allows you to conveniently provide a long list #[cfg]'d blocks of code
//! without having to rewrite each clause multiple times.
......@@ -21,7 +21,6 @@ macro_rules! cfg_if {
}
}
#[doc(hidden)]
macro_rules! __cfg_if_items {
(($($not:meta,)*) ; ) => {};
(($($not:meta,)*) ; ( ($($m:meta),*) ($($it:item)*) ), $($rest:tt)*) => {
......@@ -30,7 +29,6 @@ macro_rules! __cfg_if_items {
}
}
#[doc(hidden)]
macro_rules! __cfg_if_apply {
($m:meta, $($it:item)*) => {
$(#[$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