wasmtime_config_consume_fuel_set function

  1. @Native<Void Function(Pointer<wasm_config_t>, Bool)>(ffi.Pointer<wasm_config_t>, ffi.Bool)>()
void wasmtime_config_consume_fuel_set(
  1. Pointer<wasm_config_t> arg0,
  2. bool arg1
)

\brief Whether or not fuel is enabled for generated code.

This setting is false by default. When enabled it will enable fuel counting meaning that fuel will be consumed every time a wasm instruction is executed, and trap when reaching zero.

Implementation

@ffi.Native<ffi.Void Function(ffi.Pointer<wasm_config_t>, ffi.Bool)>()
external void wasmtime_config_consume_fuel_set(
  ffi.Pointer<wasm_config_t> arg0,
  bool arg1,
);