internal Host(Interop.WasmConfigHandle config) { var engine = Interop.wasm_engine_new_with_config(config); config.SetHandleAsInvalid(); Initialize(engine); }
internal Engine(Interop.WasmConfigHandle config) { Handle = Interop.wasm_engine_new_with_config(config); config.SetHandleAsInvalid(); if (Handle.IsInvalid) { throw new WasmtimeException("Failed to create Wasmtime engine."); } }