Skip to main content

WhiskerModuleDispatchFn

Type Alias WhiskerModuleDispatchFn 

Source
pub type WhiskerModuleDispatchFn = extern "C" fn(method_name: *const c_char, args: *const WhiskerValueRaw, arg_count: usize) -> WhiskerValueRaw;
Expand description

Per-module dispatch function — the platform-side Swift Macro or KSP processor emits one of these per @WhiskerModule-annotated class. The bridge stores (module_name → dispatch_fn) in a lookup table; whisker_bridge_invoke_module then routes calls through the registered function directly (Phase 7-Φ.F).