macro: allow calling boot fns with None as parameter

This allows using them from other modules for initialization.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2023-07-25 13:32:47 +02:00
parent b94cbb8f16
commit 63fcccaa50

View File

@ -110,7 +110,7 @@ impl Package {
quote! { quote! {
#[no_mangle] #[no_mangle]
pub extern "C" fn #bootstrap_ident( pub extern "C" fn #bootstrap_ident(
_cv: &::perlmod::ffi::CV, _cv: Option<&::perlmod::ffi::CV>,
) { ) {
static ONCE: ::std::sync::Once = ::std::sync::Once::new(); static ONCE: ::std::sync::Once = ::std::sync::Once::new();
ONCE.call_once(|| { ONCE.call_once(|| {