(ptr *C.wasmtime_module_t)
| 17 | } |
| 18 | |
| 19 | func mkModule(ptr *C.wasmtime_module_t) *Module { |
| 20 | module := &Module{_ptr: ptr} |
| 21 | runtime.SetFinalizer(module, func(module *Module) { |
| 22 | module.Close() |
| 23 | }) |
| 24 | return module |
| 25 | } |
| 26 | |
| 27 | func (m *Module) ptr() *C.wasmtime_module_t { |
| 28 | ret := m._ptr |
no test coverage detected
searching dependent graphs…