From a4eb5ec8fca10dba70301db440cc2dd33ddc61fa Mon Sep 17 00:00:00 2001 From: KarlSchimpf Date: Wed, 28 Jun 2017 15:38:12 -0700 Subject: 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. --- src/binary-reader-interpreter.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/binary-reader-interpreter.cc') 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; -- cgit v1.2.3