aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);