diff options
author | Thomas Lively <tlively@google.com> | 2024-05-29 10:35:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 10:35:25 -0700 |
commit | f622b8e47c69dcbdf2666c795fb3658dc4da52af (patch) | |
tree | 27a0c58cb6b932e8251fa6dd2aa68b41f138a1a1 /src/emscripten-optimizer | |
parent | 525f0761496c6aafea80a2d2e8cb709515eb06c5 (diff) | |
download | binaryen-f622b8e47c69dcbdf2666c795fb3658dc4da52af.tar.gz binaryen-f622b8e47c69dcbdf2666c795fb3658dc4da52af.tar.bz2 binaryen-f622b8e47c69dcbdf2666c795fb3658dc4da52af.zip |
Use new wast parser in wasm2js (#6606)
When generating assertions, traverse the `WASTScript` data structure rather than
interleaving assertion parsing with emitting.
Diffstat (limited to 'src/emscripten-optimizer')
-rw-r--r-- | src/emscripten-optimizer/simple_ast.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emscripten-optimizer/simple_ast.h b/src/emscripten-optimizer/simple_ast.h index ecb0e22ea..aed6499d5 100644 --- a/src/emscripten-optimizer/simple_ast.h +++ b/src/emscripten-optimizer/simple_ast.h @@ -38,9 +38,8 @@ #include "snprintf.h" #include "support/safe_integer.h" -#define err(str) fprintf(stderr, str "\n"); #define errv(str, ...) fprintf(stderr, str "\n", __VA_ARGS__); -#define printErr err +#define printErr(str) fprintf(stderr, str "\n"); namespace cashew { |