예제 #1
0
파일: Host.cs 프로젝트: riclxu/wasmtime
        internal Host(Interop.WasmConfigHandle config)
        {
            var engine = Interop.wasm_engine_new_with_config(config);

            config.SetHandleAsInvalid();

            Initialize(engine);
        }
예제 #2
0
        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.");
            }
        }