Skip to main content

host_fn

Macro host_fn 

Source
macro_rules! host_fn {
    ($vis:vis fn $name:ident($g:ident, $args:ident) $body:block) => { ... };
}
Expand description

Defines a panic-shielded JSC host function, in redjs’s host ABI: a panic becomes a thrown JS Error and poisons the runtime.