aboutsummaryrefslogtreecommitdiffstats
path: root/clox/src/vm.h
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-08-12 18:22:49 -0700
committerGravatar Tom Willemse2022-08-12 18:22:49 -0700
commit38e4c37f0f991122530a708148a6ec0e2a5a3eff (patch)
tree9d09aa126beda648b6a4f439701fb3290f49c2ef /clox/src/vm.h
parent89ffc2e60a7e7473504721874596e7bebcce896a (diff)
downloadcrafting-interpreters-38e4c37f0f991122530a708148a6ec0e2a5a3eff.tar.gz
crafting-interpreters-38e4c37f0f991122530a708148a6ec0e2a5a3eff.zip
Chapter 26.6
Diffstat (limited to 'clox/src/vm.h')
-rw-r--r--clox/src/vm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clox/src/vm.h b/clox/src/vm.h
index 61fe45a..e108daa 100644
--- a/clox/src/vm.h
+++ b/clox/src/vm.h
@@ -24,6 +24,9 @@ typedef struct {
Table globals;
Table strings;
ObjUpvalue *openUpvalues;
+
+ size_t bytesAllocated;
+ size_t nextGC;
Obj *objects;
int grayCount;
int grayCapacity;