From 2245aa052c4b4e3db841a68afc986838f4330f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Fri, 19 Feb 2021 19:20:10 +0100 Subject: WIP WIP WIP state in proc macro thingy --- sylt_macro/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sylt_macro/src/lib.rs b/sylt_macro/src/lib.rs index 9bfef65..e4b9d36 100644 --- a/sylt_macro/src/lib.rs +++ b/sylt_macro/src/lib.rs @@ -94,6 +94,12 @@ pub fn extern_function(tokens: TokenStream) -> TokenStream { TokenStream::from(tokens) } +type RustFunction = fn(&[Value], bool) -> Result; + +lazy_static! { + static ref LINKED_FUNCTIONS: Mutex> +} + #[proc_macro_attribute] pub fn extern_link(attr: TokenStream, tokens: TokenStream) -> TokenStream { let parsed: syn::ItemFn = parse_macro_input!(tokens); -- cgit v1.2.1