pub fn expand_include(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree])
    -> base::MacResult {
    let file = match get_single_str_from_tts(cx, sp, tts, "include!") {
        Some(f) => f,
        None => return MacResult::dummy_expr(),
    };
    // The file will be added to the code map by the parser
    let mut p =
        parse::new_sub_parser_from_file(cx.parse_sess(),
                                        cx.cfg(),
                                        &res_rel_file(cx,
                                                      sp,
                                                      &Path::new(file)),
                                        sp);
    base::MRExpr(p.parse_expr())
}
// include! : parse the given file as an expr
// This is generally a bad idea because it's going to behave
// unhygienically.
include. : parse the given file as an expr
This is generally a bad idea because it's going to behave
unhygienically.
include . : parse the given file as an expr This is generally a bad idea because it ' s going to behave unhygienically .
pub fn expand_include(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree])
    -> base::MacResult {
    let file = match get_single_str_from_tts(cx, sp, tts, "include!") {
        Some(f) => f,
        None => return MacResult::dummy_expr(),
    };
    // The file will be added to the code map by the parser
    let mut p =
        parse::new_sub_parser_from_file(cx.parse_sess(),
                                        cx.cfg(),
                                        &res_rel_file(cx,
                                                      sp,
                                                      &Path::new(file)),
                                        sp);
    base::MRExpr(p.parse_expr())
}
pub fn expand_include ( cx : & mut ExtCtxt , sp : Span , tts : & [ ast :: TokenTree ] ) -> base :: MacResult { let file = match get_single_str_from_tts ( cx , sp , tts , " " ) { Some ( f ) => f , None => return MacResult :: dummy_expr ( ) , } ; // The file will be added to the code map by the parser let mut p = parse :: new_sub_parser_from_file ( cx . parse_sess ( ) , cx . cfg ( ) , & res_rel_file ( cx , sp , & Path :: new ( file ) ) , sp ) ; base :: MRExpr ( p . parse_expr ( ) ) }
include!
include!
cx
&mut ExtCtxt
sp
Span
tts
&[ast::TokenTree]
cx
&mut ExtCtxt
sp
Span
tts
&[ast::TokenTree]