summaryrefslogtreecommitdiff
path: root/src/binary-reader-interpreter.cc
diff options
context:
space:
mode:
authorKarlSchimpf <karlschimpf@gmail.com>2017-06-28 15:38:12 -0700
committerGitHub <noreply@github.com>2017-06-28 15:38:12 -0700
commita4eb5ec8fca10dba70301db440cc2dd33ddc61fa (patch)
tree9a0a7b96eec947bd087983b506e9966175e7d838 /src/binary-reader-interpreter.cc
parent4835641a34511bba8877a0b08832e7d0aba75b9c (diff)
downloadwabt-a4eb5ec8fca10dba70301db440cc2dd33ddc61fa.tar.gz
wabt-a4eb5ec8fca10dba70301db440cc2dd33ddc61fa.tar.bz2
wabt-a4eb5ec8fca10dba70301db440cc2dd33ddc61fa.zip
Remove WABT_ZERO_MEMORY WABT_FAILED and WABT_SUCCEEDED macros. (#540)
* Remove WABT_ZERO_MEMORY WABT_FAILED and WABT_SUCCEEDED macros. * Add source generated files. * Add pod check.
Diffstat (limited to 'src/binary-reader-interpreter.cc')
-rw-r--r--src/binary-reader-interpreter.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/binary-reader-interpreter.cc b/src/binary-reader-interpreter.cc
index 7ea996e1..db026afe 100644
--- a/src/binary-reader-interpreter.cc
+++ b/src/binary-reader-interpreter.cc
@@ -30,7 +30,7 @@
#define CHECK_RESULT(expr) \
do { \
- if (WABT_FAILED(expr)) \
+ if (Failed(expr)) \
return wabt::Result::Error; \
} while (0)
@@ -474,8 +474,8 @@ wabt::Result BinaryReaderInterpreter::GetBrDropKeepCount(
wabt::Result BinaryReaderInterpreter::GetReturnDropKeepCount(
Index* out_drop_count,
Index* out_keep_count) {
- if (WABT_FAILED(GetBrDropKeepCount(label_stack.size() - 1, out_drop_count,
- out_keep_count))) {
+ if (Failed(GetBrDropKeepCount(label_stack.size() - 1, out_drop_count,
+ out_keep_count))) {
return wabt::Result::Error;
}
@@ -1458,7 +1458,7 @@ wabt::Result read_binary_interpreter(Environment* env,
wabt::Result result = read_binary(data, size, &reader, options);
env->SetIstream(reader.ReleaseOutputBuffer());
- if (WABT_SUCCEEDED(result)) {
+ if (Succeeded(result)) {
module->istream_start = istream_offset;
module->istream_end = env->istream().size();
*out_module = module;