| 303 | } |
| 304 | |
| 305 | inline ValType::ValType(const Engine &engine, const RefType &ty) |
| 306 | : ref(nullptr) { |
| 307 | wasmtime_ty.kind = WASMTIME_VALTYPE_KIND_REF; |
| 308 | wasmtime_reftype_clone(ty.capi(), &wasmtime_ty.reftype); |
| 309 | ptr.reset(wasmtime_valtype_to_wasm(engine.capi(), &wasmtime_ty)); |
| 310 | ref = ptr.get(); |
| 311 | } |
| 312 | |
| 313 | inline ValType ValType::anyref() { |
| 314 | wasmtime_valtype_t ty; |
nothing calls this directly
no test coverage detected