File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments