Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Commit fdaa1a0

Browse files
committed
review fixes
1 parent f4cd26d commit fdaa1a0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/rust.rs

+7
Original file line numberDiff line numberDiff line change
@@ -1671,6 +1671,7 @@ macro_rules! wrap {
16711671
wrap!(@inner $saved <> ($($acc,)* $arg,) <> $($rest)*);
16721672
};
16731673
(@inner ($func_name:ident ($($args:tt)*) -> $outtype:ty) <> ($($argexprs:expr,)*) <> ) => {
1674+
#[inline]
16741675
pub unsafe fn $func_name($($args)*) -> $outtype {
16751676
jsapi::$func_name($($argexprs),*)
16761677
}
@@ -1682,6 +1683,12 @@ macro_rules! wrap {
16821683
wrap!(pub fn $func_name($($args)*) -> ());
16831684
}
16841685
}
1686+
1687+
/** Wrappers for JSAPI methods that accept lifetimed Handle and MutableHandle arguments.
1688+
*
1689+
* The wrapped methods are identical except that they accept Handle and MutableHandle arguments
1690+
* that include lifetimes instead.
1691+
* */
16851692
pub mod wrappers {
16861693
use jsapi;
16871694
use jsapi::{IsArrayAnswer, PropertyDescriptor, ElementAdder, DetachDataDisposition};

0 commit comments

Comments
 (0)