Function gwasm_instrument::stack_limiter::inject_with_config
source · pub fn inject_with_config<I: IntoIterator<Item = Instruction>>(
module: Module,
injection_config: InjectionConfig<'_, I, impl Fn(&FunctionType) -> I>
) -> Result<Module, &'static str>
Expand description
Same as the inject
function, but allows to configure exit instructions when the stack limit
is reached and the export name of the stack height global.