aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-02-19 19:20:10 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-02-19 19:20:10 +0100
commit2245aa052c4b4e3db841a68afc986838f4330f4e (patch)
tree0141fe8d097d5c971d3160c0929ea70a6cd98f15
parent3114fc9d1609f6a01582a4c4148cb9596b620975 (diff)
downloadsylt-2245aa052c4b4e3db841a68afc986838f4330f4e.tar.gz
WIP WIP WIP state in proc macro thingy
-rw-r--r--sylt_macro/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
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<Value, ErrorKind>;
+
+lazy_static! {
+ static ref LINKED_FUNCTIONS: Mutex<Vec<(String, )>>
+}
+
#[proc_macro_attribute]
pub fn extern_link(attr: TokenStream, tokens: TokenStream) -> TokenStream {
let parsed: syn::ItemFn = parse_macro_input!(tokens);