diff options
author | Keith Winstein <keithw@cs.stanford.edu> | 2023-01-22 13:43:15 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-22 21:43:15 +0000 |
commit | 165d5d62485bf09ddac404ab908a7c0ebf6b9851 (patch) | |
tree | f333f496ef8f7ff7fe6682a3c3a37096f7dbdb99 /wasm2c/wasm-rt.h | |
parent | 4e3f0a76c9b445154c7157ce63ff74812aeb6851 (diff) | |
download | wabt-165d5d62485bf09ddac404ab908a7c0ebf6b9851.tar.gz wabt-165d5d62485bf09ddac404ab908a7c0ebf6b9851.tar.bz2 wabt-165d5d62485bf09ddac404ab908a7c0ebf6b9851.zip |
Update wasm2c examples to reflect new wasm_rt_allocate_memory() parameter (#2133)
Diffstat (limited to 'wasm2c/wasm-rt.h')
-rw-r--r-- | wasm2c/wasm-rt.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/wasm2c/wasm-rt.h b/wasm2c/wasm-rt.h index e75065f8..64e6f972 100644 --- a/wasm2c/wasm-rt.h +++ b/wasm2c/wasm-rt.h @@ -351,12 +351,13 @@ void* wasm_rt_exception(void); /** * Initialize a Memory object with an initial page size of `initial_pages` and - * a maximum page size of `max_pages`. + * a maximum page size of `max_pages`, indexed with an i32 or i64. * * ``` * wasm_rt_memory_t my_memory; - * // 1 initial page (65536 bytes), and a maximum of 2 pages. - * wasm_rt_allocate_memory(&my_memory, 1, 2); + * // 1 initial page (65536 bytes), and a maximum of 2 pages, + * // indexed with an i32 + * wasm_rt_allocate_memory(&my_memory, 1, 2, false); * ``` */ void wasm_rt_allocate_memory(wasm_rt_memory_t*, |