NewConfig creates a new `Config` with all default options configured.
()
| 49 | |
| 50 | // NewConfig creates a new `Config` with all default options configured. |
| 51 | func NewConfig() *Config { |
| 52 | config := &Config{_ptr: C.wasm_config_new()} |
| 53 | runtime.SetFinalizer(config, func(config *Config) { |
| 54 | config.Close() |
| 55 | }) |
| 56 | return config |
| 57 | } |
| 58 | |
| 59 | // SetDebugInfo configures whether dwarf debug information for JIT code is enabled |
| 60 | func (cfg *Config) SetDebugInfo(enabled bool) { |
searching dependent graphs…