diff options
author | Tom Willemse | 2021-09-09 22:57:03 -0700 |
---|---|---|
committer | Tom Willemse | 2021-09-09 22:57:03 -0700 |
commit | 8ec913756107cc8e6aee965d0dc080039d4995ad (patch) | |
tree | 818fa7ca8314eaed7745d6fe4a7cc9f0c1b4ca6d /clox/src/vm.h | |
parent | d5f352e577acf1f472150df5578ff6d693258ae3 (diff) | |
download | crafting-interpreters-8ec913756107cc8e6aee965d0dc080039d4995ad.tar.gz crafting-interpreters-8ec913756107cc8e6aee965d0dc080039d4995ad.zip |
Chapter 19.5
Diffstat (limited to 'clox/src/vm.h')
-rw-r--r-- | clox/src/vm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clox/src/vm.h b/clox/src/vm.h index a781647..6c6ada8 100644 --- a/clox/src/vm.h +++ b/clox/src/vm.h @@ -11,6 +11,7 @@ typedef struct { uint8_t *ip; Value stack[STACK_MAX]; Value *stackTop; + Obj *objects; } VM; typedef enum { @@ -19,6 +20,8 @@ typedef enum { INTERPRET_RUNTIME_ERROR } InterpretResult; +extern VM vm; + void initVM(); void freeVM(); InterpretResult interpret(const char *source); |