Skip to content

Commit

Permalink
Rename WABT_MODULE_LAYER to WABT_BINARY_LAYER_MODULE etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Nov 25, 2024
1 parent 3f21344 commit b134d59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/wabt/binary.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

#define WABT_BINARY_MAGIC 0x6d736100
#define WABT_BINARY_VERSION 1
#define WABT_MODULE_LAYER 0
#define WABT_COMPONENT_LAYER 1
#define WABT_BINARY_LAYER_MODULE 0
#define WABT_BINARY_LAYER_COMPONENT 1
#define WABT_BINARY_LIMITS_HAS_MAX_FLAG 0x1
#define WABT_BINARY_LIMITS_IS_SHARED_FLAG 0x2
#define WABT_BINARY_LIMITS_IS_64_FLAG 0x4
Expand Down
4 changes: 2 additions & 2 deletions src/binary-reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3102,12 +3102,12 @@ Result BinaryReader::ReadModule(const ReadModuleOptions& options) {
CHECK_RESULT(ReadU16(&layer, "layer"));

switch (layer) {
case WABT_MODULE_LAYER:
case WABT_BINARY_LAYER_MODULE:
ERROR_UNLESS(version == WABT_BINARY_VERSION,
"bad wasm file version: %#x (expected %#x)", version,
WABT_BINARY_VERSION);
break;
case WABT_COMPONENT_LAYER:
case WABT_BINARY_LAYER_COMPONENT:
ERROR("wasm components are not yet supported in this tool");
break;
default:
Expand Down

0 comments on commit b134d59

Please sign in to comment.