Macro boa_gc::custom_trace
source · macro_rules! custom_trace { ($this:ident, $marker:ident, $body:expr) => { ... }; }
Expand description
Utility macro to manually implement Trace
on a type.
You define a this
parameter name and pass in a body, which should call mark
on every
traceable element inside the body. The mark implementation will automatically delegate to the
correct method on the argument.
§Safety
Misusing the mark
function may result in Undefined Behaviour.