Implement function-like procedural macros ( #[proc_macro])

This commit is contained in:
Austin Bonander
2017-02-27 12:03:19 -08:00
parent 4be034e622
commit 2fcbb48c72
10 changed files with 213 additions and 10 deletions

View File

@@ -125,6 +125,10 @@ pub mod __internal {
fn register_attr_proc_macro(&mut self,
name: &str,
expand: fn(TokenStream, TokenStream) -> TokenStream);
fn register_bang_proc_macro(&mut self,
name: &str,
expand: fn(TokenStream) -> TokenStream);
}
// Emulate scoped_thread_local!() here essentially