aboutsummaryrefslogtreecommitdiffstats
path: root/memdict.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'memdict.hpp')
-rw-r--r--memdict.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/memdict.hpp b/memdict.hpp
index 22841c5..c88bc7d 100644
--- a/memdict.hpp
+++ b/memdict.hpp
@@ -46,6 +46,10 @@ public:
virtual void writebyte(Addr addr, uint8_t value) noexcept final {
dict[addr] = value;
}
+
+ virtual unsigned long int capacity() const noexcept final {
+ return sizeof(dict);
+ }
};
#endif // ALEEFORTH_MEMDICT_HPP