Skip to content

Commit b134d59

Browse files
committed
Rename WABT_MODULE_LAYER to WABT_BINARY_LAYER_MODULE etc.
1 parent 3f21344 commit b134d59

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/wabt/binary.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
#define WABT_BINARY_MAGIC 0x6d736100
2323
#define WABT_BINARY_VERSION 1
24-
#define WABT_MODULE_LAYER 0
25-
#define WABT_COMPONENT_LAYER 1
24+
#define WABT_BINARY_LAYER_MODULE 0
25+
#define WABT_BINARY_LAYER_COMPONENT 1
2626
#define WABT_BINARY_LIMITS_HAS_MAX_FLAG 0x1
2727
#define WABT_BINARY_LIMITS_IS_SHARED_FLAG 0x2
2828
#define WABT_BINARY_LIMITS_IS_64_FLAG 0x4

src/binary-reader.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -3102,12 +3102,12 @@ Result BinaryReader::ReadModule(const ReadModuleOptions& options) {
31023102
CHECK_RESULT(ReadU16(&layer, "layer"));
31033103

31043104
switch (layer) {
3105-
case WABT_MODULE_LAYER:
3105+
case WABT_BINARY_LAYER_MODULE:
31063106
ERROR_UNLESS(version == WABT_BINARY_VERSION,
31073107
"bad wasm file version: %#x (expected %#x)", version,
31083108
WABT_BINARY_VERSION);
31093109
break;
3110-
case WABT_COMPONENT_LAYER:
3110+
case WABT_BINARY_LAYER_COMPONENT:
31113111
ERROR("wasm components are not yet supported in this tool");
31123112
break;
31133113
default:

0 commit comments

Comments
 (0)