blob: 233089b987451fd60532eafe22a7a2f860386db8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import base::*;
import build::mk_uniq_str;
import option;
fn expand_syntax_ext(cx: ext_ctxt, sp: codemap::span, arg: ast::mac_arg,
_body: ast::mac_body) -> @ast::expr {
let args = get_mac_args(cx,sp,arg,1u,option::some(1u),"ident_to_str");
ret mk_uniq_str(cx, sp, *expr_to_ident(cx, args[0u],
"expected an ident"));
}
|