From 94cbe63149248e251580ef95a6d3a31faf00a238 Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Wed, 22 Nov 2017 18:35:45 +0100 Subject: Provide AddImport/AddExport for each element in the C-API (#1292) * Provide AddImport/AddExport for each element in the C-API --- test/example/c-api-unused-mem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/example/c-api-unused-mem.cpp') 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]); -- cgit v1.2.3