summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h
index d2bea45a1..fc167342a 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -672,6 +672,7 @@ public:
Table() : exists(false), imported(false), initial(0), max(kMaxSize) {
name = Name::fromInt(0);
}
+ bool hasMax() { return max != kMaxSize; }
};
class Memory {
@@ -705,6 +706,7 @@ public:
Memory() : initial(0), max(kMaxSize), exists(false), imported(false), shared(false) {
name = Name::fromInt(0);
}
+ bool hasMax() { return max != kMaxSize; }
};
class Global {