Add missing `#[no_mangle]` to `gmod13_close`

This commit is contained in:
William Venner 2021-09-12 04:28:26 +01:00
parent 36dc7fe6ea
commit 594152e7fd
1 changed files with 1 additions and 1 deletions

View File

@ -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]