summaryrefslogtreecommitdiff
path: root/docs/demo/wat2wasm/demo.js
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2022-04-14 15:41:15 +0000
committerGitHub <noreply@github.com>2022-04-14 15:41:15 +0000
commitc3a1ce092b888efbd234a7664f18e6bce977611d (patch)
tree3a821aea11325bc4403772792ba449b62095b2b6 /docs/demo/wat2wasm/demo.js
parent38953bfd87d9cfafccae2f5e93c4d2fd5949f2f0 (diff)
downloadwabt-c3a1ce092b888efbd234a7664f18e6bce977611d.tar.gz
wabt-c3a1ce092b888efbd234a7664f18e6bce977611d.tar.bz2
wabt-c3a1ce092b888efbd234a7664f18e6bce977611d.zip
wasm2c: Always use a module prefix and set one by default (#1897)
The module prefix is no longer optional and is now set by default to the name of the module as given in the name section, or taken from the name of the input file. A new `-n/--module-name` command line flag can also be used to override. The prefix used by the generated code is now fixed at wasm2c time which makes the output code easier to read and also avoid the symbol pasting in the C pre-processor which makes the source hard to understand. For example, it makes symbols hard to `grep` for.
Diffstat (limited to 'docs/demo/wat2wasm/demo.js')
0 files changed, 0 insertions, 0 deletions