1 // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 // aux-build:macro-vis.rs
13 // ignore-cross-compile
15 #![feature(use_extern_macros)]
17 #[macro_use] extern crate qwop;
19 // @has macro_vis/macro.some_macro.html
20 // @has macro_vis/index.html '//a/@href' 'macro.some_macro.html'
21 pub use qwop::some_macro;
23 // @has macro_vis/macro.renamed_macro.html
24 // @!has - '//pre' 'some_macro'
25 // @has macro_vis/index.html '//a/@href' 'macro.renamed_macro.html'
27 pub use qwop::some_macro as renamed_macro;
29 // @!has macro_vis/macro.other_macro.html
30 // @!has macro_vis/index.html '//a/@href' 'macro.other_macro.html'
31 // @!has - '//code' 'pub use qwop::other_macro;'
33 pub use qwop::other_macro;
35 // @has macro_vis/index.html '//code' 'pub use qwop::super_macro;'
36 // @!has macro_vis/macro.super_macro.html
38 pub use qwop::super_macro;
40 // @has macro_vis/macro.this_is_dope.html
41 // @has macro_vis/index.html '//a/@href' 'macro.this_is_dope.html'
42 /// What it says on the tin.
44 macro_rules! this_is_dope {
46 println!("yo check this out");