From b3f67918fe34e7de76d1f5565bd3f07f4f7eb12f Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Fri, 26 Feb 2021 11:48:09 +0100 Subject: Slightly improve table C API (#3604) Uses BinaryenIndex instead of int to mirror parameter types in table construction, and adds setters for name, initial and max. --- test/example/c-api-multiple-tables.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/example/c-api-multiple-tables.txt') diff --git a/test/example/c-api-multiple-tables.txt b/test/example/c-api-multiple-tables.txt index c0f2da53b..5b2858e91 100644 --- a/test/example/c-api-multiple-tables.txt +++ b/test/example/c-api-multiple-tables.txt @@ -2,8 +2,8 @@ (type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) (table $tab 1 1 funcref) (elem (table $tab) (i32.const 0) func $adder) - (table $t2 1 1 funcref) - (elem (table $t2) (i32.const 0) func $adder) + (table $table2 2 2 funcref) + (elem (table $table2) (i32.const 0) func $adder) (func $adder (param $0 i32) (param $1 i32) (result i32) (i32.add (local.get $0) -- cgit v1.2.3