summaryrefslogtreecommitdiff
path: root/src/binary-reader-linker.h
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-03-13 16:32:11 -0700
committerGitHub <noreply@github.com>2017-03-13 16:32:11 -0700
commita02beb8e12b21f63dcfbf862366d3e44f4eb62d3 (patch)
tree64833025e93a154d7166dfbcddf04fcfea85ce03 /src/binary-reader-linker.h
parenta17662511d4e7c277f5add3b61453e7b708b2756 (diff)
downloadwabt-a02beb8e12b21f63dcfbf862366d3e44f4eb62d3.tar.gz
wabt-a02beb8e12b21f63dcfbf862366d3e44f4eb62d3.tar.bz2
wabt-a02beb8e12b21f63dcfbf862366d3e44f4eb62d3.zip
Fix crash using binary reader logging with error (#351)
When the binary logging is turned on, it can't use the `reader->on_error` directly since that function expects that the user_data is the BinaryReaderInterpreter context (for example), but it is actually the LoggingContext. To make it easier for users to use the default error handler, now they return a bool saying whether the error was handled. Some additional changes: * Add a test that uses logging and succeeds * Add a test that uses logging and has an error * Change the `run-*-interp.py` scripts to use `-t` for tracing and `-v` for logging
Diffstat (limited to 'src/binary-reader-linker.h')
0 files changed, 0 insertions, 0 deletions