diff options
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h index f93fb3a80..f26cf05a9 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -1430,10 +1430,18 @@ public: class Import { public: + enum Kind { + Function = 0, + Table = 1, + Memory = 2, + Global = 3, + }; + Import() : type(nullptr) {} Name name, module, base; // name = module.base - FunctionType* type; + Kind kind; + FunctionType* type; // for Function imports }; class Export { |