diff options
Diffstat (limited to 'src/libextra/lib.rs')
| -rw-r--r-- | src/libextra/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libextra/lib.rs b/src/libextra/lib.rs index e2a4b52c810..358dca5e5ac 100644 --- a/src/libextra/lib.rs +++ b/src/libextra/lib.rs @@ -34,6 +34,11 @@ Rust extras are part of the standard Rust distribution. #[deny(non_camel_case_types)]; #[deny(missing_doc)]; +#[cfg(stage0)] +macro_rules! if_ok ( + ($e:expr) => (match $e { Ok(e) => e, Err(e) => return Err(e) }) +) + // Utility modules pub mod c_vec; |
