Macro sciter::dispatch_script_call [] [src]

macro_rules! dispatch_script_call {
    (
		$(
			fn $name:ident ( $( $argt:ident ),* );
		 )*
	) => { ... };
}

Dispatch script calls to native code. Used in dom::EventHandler implementations.

This macro generates new function which dispatchs incoming script call to native function with arguments unpacking and type checking.

Note: unstable, will be improved.