diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm-interpreter.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index 7d024fb58..4862d6d9e 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -23,6 +23,7 @@ public: // an imported function or accessing memory. // struct ExternalInterface { + virtual void init(Module& wasm) {} virtual Literal callImport(Import* import, LiteralList& arguments) = 0; virtual Literal load(Load* load, Literal ptr) = 0; virtual void store(Store* store, Literal ptr, Literal value) = 0; @@ -32,6 +33,8 @@ public: for (auto function : wasm.functions) { functions[function->name] = function; } + + externalInterface->init(wasm); } #ifdef WASM_INTERPRETER_DEBUG |