From 63fcccaa50aca965d2d18a90f193a6750a1f7a64 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 25 Jul 2023 13:32:47 +0200 Subject: [PATCH] macro: allow calling boot fns with None as parameter This allows using them from other modules for initialization. Signed-off-by: Wolfgang Bumiller --- perlmod-macro/src/package.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perlmod-macro/src/package.rs b/perlmod-macro/src/package.rs index 711460a..04e000b 100644 --- a/perlmod-macro/src/package.rs +++ b/perlmod-macro/src/package.rs @@ -110,7 +110,7 @@ impl Package { quote! { #[no_mangle] pub extern "C" fn #bootstrap_ident( - _cv: &::perlmod::ffi::CV, + _cv: Option<&::perlmod::ffi::CV>, ) { static ONCE: ::std::sync::Once = ::std::sync::Once::new(); ONCE.call_once(|| {