diff options
author | Keith Winstein <208955+keithw@users.noreply.github.com> | 2024-11-08 07:45:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-08 07:45:07 -0800 |
commit | 765b47d02aac894da80b74284263d1b487415aa0 (patch) | |
tree | 9e7275ddf2f8f3326c3a779e30a3aa963159ffa7 /src/interp/interp-wasm-c-api.cc | |
parent | c1d97e9c75c687faa81fe0ab4f1ac77c30487f47 (diff) | |
download | wabt-765b47d02aac894da80b74284263d1b487415aa0.tar.gz wabt-765b47d02aac894da80b74284263d1b487415aa0.tar.bz2 wabt-765b47d02aac894da80b74284263d1b487415aa0.zip |
Add support for the custom-page-sizes proposal (#2502)
This adds support in the binary/text parsers and writers,
the validator and interpreter, and objdump (but not wasm2c).
Diffstat (limited to 'src/interp/interp-wasm-c-api.cc')
-rw-r--r-- | src/interp/interp-wasm-c-api.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interp/interp-wasm-c-api.cc b/src/interp/interp-wasm-c-api.cc index cfa8a897..bb4598a4 100644 --- a/src/interp/interp-wasm-c-api.cc +++ b/src/interp/interp-wasm-c-api.cc @@ -160,7 +160,10 @@ struct wasm_tabletype_t : wasm_externtype_t { struct wasm_memorytype_t : wasm_externtype_t { wasm_memorytype_t(const wasm_limits_t* limits) - : wasm_externtype_t{std::make_unique<MemoryType>(ToWabtLimits(*limits))}, + : wasm_externtype_t{std::make_unique<MemoryType>( + ToWabtLimits(*limits), + WABT_DEFAULT_PAGE_SIZE)}, // wasm-c-api doesn't support + // custom-page-sizes yet limits{*limits} {} wasm_memorytype_t(MemoryType mt) |