diff options
author | Ben Smith <binji@chromium.org> | 2020-04-14 08:57:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 08:57:07 -0700 |
commit | 952c3b8006911a8659c1b922c3bb4adffc671d89 (patch) | |
tree | 00e85fa8d984fce95731ea690cc56a6646b6bc00 /src/binary-reader.cc | |
parent | 10a9b0563efea0ab00abf6846c0ebcb53f492404 (diff) | |
download | wabt-952c3b8006911a8659c1b922c3bb4adffc671d89.tar.gz wabt-952c3b8006911a8659c1b922c3bb4adffc671d89.tar.bz2 wabt-952c3b8006911a8659c1b922c3bb4adffc671d89.zip |
[wasm2c] Add rot13 example (#1384)
This example demonstrates how to use imported functions. The `rot13`
program takes each command line argument, and rot13-encodes it.
The exported `rot13` function has no arguments, and instead calls back
into the program (via `fill_buf`) with a buffer to fill in. When the
function finishes it calls `buf_done`.
(rot13.wat is the same as in src/test-interp.cc.)
Diffstat (limited to 'src/binary-reader.cc')
0 files changed, 0 insertions, 0 deletions