diff --git a/src/ffi_export.rs b/src/ffi_export.rs index cb87cd0176..cf7ed3af10 100644 --- a/src/ffi_export.rs +++ b/src/ffi_export.rs @@ -131,11 +131,12 @@ macro_rules! __ffi_export__ {( ret }} + $crate::paste::item! { /// Define the N-API wrapping function. #[cfg(any( $( all(), - __hack = $node_js_arg_count, + [< __hack_ $node_js_arg_count >] = "", )? ))] const _: () = { @@ -231,6 +232,7 @@ macro_rules! __ffi_export__ {( } } }; + } }; #[cfg(not(target_arch = "wasm32"))]