aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/macros.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/macros.rs')
-rw-r--r--components/script/dom/macros.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/components/script/dom/macros.rs b/components/script/dom/macros.rs
index c9d7550b7ea..dba18808c65 100644
--- a/components/script/dom/macros.rs
+++ b/components/script/dom/macros.rs
@@ -42,3 +42,19 @@ macro_rules! make_uint_getter(
}
);
)
+
+
+/// For use on non-jsmanaged types
+/// Use #[jstraceable] on JS managed types
+macro_rules! untraceable(
+ ($($ty:ident),+) => (
+ $(
+ impl JSTraceable for $ty {
+ #[inline]
+ fn trace(&self, _: *mut JSTracer) {
+ // Do nothing
+ }
+ }
+ )+
+ );
+) \ No newline at end of file