Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
#[macro_export]
macro_rules! perl_fn {
+ ($(
+ $(#[$attr:meta])*
+ extern "C" fn($($args:tt)*) $(-> $re:ty)?
+ )*) => {$(
+ $(#[$attr])*
+ extern "C" fn(*const $crate::ffi::Interpreter, $($args)*) $(-> $re)?
+ )*};
($(
$(#[$attr:meta])*
extern "C" fn $name:ident ($($args:tt)*) $(-> $re:ty)? {
#[macro_export]
macro_rules! perl_fn {
+ ($(
+ $(#[$attr:meta])*
+ extern "C" fn($($args:tt)*) $(-> $re:ty)?
+ )*) => {$(
+ $(#[$attr])*
+ extern "C" fn($($args)*) $(-> $re)?
+ )*};
($(
$(#[$attr:meta])*
extern "C" fn $name:ident ($($args:tt)*) $(-> $re:ty)? {