From 594152e7fdcaf096b8a70b231a0966fdeca77519 Mon Sep 17 00:00:00 2001 From: William Venner Date: Sun, 12 Sep 2021 04:28:26 +0100 Subject: [PATCH] Add missing `#[no_mangle]` to `gmod13_close` --- gmod-macros/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gmod-macros/src/lib.rs b/gmod-macros/src/lib.rs index d34f8e0..dfd9808 100644 --- a/gmod-macros/src/lib.rs +++ b/gmod-macros/src/lib.rs @@ -28,7 +28,7 @@ pub fn gmod13_open(_attr: TokenStream, tokens: TokenStream) -> TokenStream { pub fn gmod13_close(_attr: TokenStream, tokens: TokenStream) -> TokenStream { let mut input = parse_macro_input!(tokens as ItemFn); check_lua_function(&mut input); - TokenStream::from(quote!(#input)) + TokenStream::from(quote!(#[no_mangle] #input)) } #[proc_macro_attribute]