mirror of
https://git.proxmox.com/git/perlmod
synced 2025-10-04 15:07:15 +00:00
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:
parent
b94cbb8f16
commit
63fcccaa50
@ -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(|| {
|
||||
|
Loading…
Reference in New Issue
Block a user