diff options
author | Daniel Wirtz <dcode@dcode.io> | 2017-11-22 18:35:45 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2017-11-22 09:35:45 -0800 |
commit | 94cbe63149248e251580ef95a6d3a31faf00a238 (patch) | |
tree | afce67e1b95f29eccac259f156185e982d6e3bb0 /test/example/c-api-unused-mem.cpp | |
parent | 13ec76dfbc1c72a5e77d6a33fca5bf349308162d (diff) | |
download | binaryen-94cbe63149248e251580ef95a6d3a31faf00a238.tar.gz binaryen-94cbe63149248e251580ef95a6d3a31faf00a238.tar.bz2 binaryen-94cbe63149248e251580ef95a6d3a31faf00a238.zip |
Provide AddImport/AddExport for each element in the C-API (#1292)
* Provide AddImport/AddExport for each element in the C-API
Diffstat (limited to 'test/example/c-api-unused-mem.cpp')
-rw-r--r-- | test/example/c-api-unused-mem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/example/c-api-unused-mem.cpp b/test/example/c-api-unused-mem.cpp index a0de5637b..dccb371fc 100644 --- a/test/example/c-api-unused-mem.cpp +++ b/test/example/c-api-unused-mem.cpp @@ -49,7 +49,7 @@ int main() { BinaryenType varTypes[] = { 1, 1, 2 }; functions[0] = BinaryenAddFunction(the_module, "main", functionTypes[0], varTypes, 3, expressions[10]); } - BinaryenAddExport(the_module, "main", "main"); + BinaryenAddFunctionExport(the_module, "main", "main"); { BinaryenType paramTypes[] = { 0 }; functionTypes[1] = BinaryenAddFunctionType(the_module, "__wasm_start", 0, paramTypes, 0); @@ -71,7 +71,7 @@ int main() { BinaryenExpressionRef children[] = { expressions[13], expressions[14] }; expressions[15] = BinaryenBlock(the_module, NULL, children, 2, BinaryenUndefined()); } - BinaryenAddExport(the_module, "__wasm_start", "rust_entry"); + BinaryenAddFunctionExport(the_module, "__wasm_start", "rust_entry"); { BinaryenType varTypes[] = { 0 }; functions[1] = BinaryenAddFunction(the_module, "__wasm_start", functionTypes[1], varTypes, 0, expressions[15]); |