diff options
author | Tom Willemse | 2021-08-02 18:09:03 -0700 |
---|---|---|
committer | Tom Willemse | 2021-08-02 18:09:03 -0700 |
commit | b131e343bb8a2b126a5370138d826d87d74fce30 (patch) | |
tree | 06cd5d22c8eeac088e5393199357c4e8d34eb8f6 /clox/src/vm.h | |
parent | 9b60cf334cdb030759c54f700d5c122338c5b3a8 (diff) | |
download | crafting-interpreters-b131e343bb8a2b126a5370138d826d87d74fce30.tar.gz crafting-interpreters-b131e343bb8a2b126a5370138d826d87d74fce30.zip |
Chapter 16.1
Diffstat (limited to 'clox/src/vm.h')
-rw-r--r-- | clox/src/vm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clox/src/vm.h b/clox/src/vm.h index 2585bd2..a781647 100644 --- a/clox/src/vm.h +++ b/clox/src/vm.h @@ -10,7 +10,7 @@ typedef struct { Chunk *chunk; uint8_t *ip; Value stack[STACK_MAX]; - Value* stackTop; + Value *stackTop; } VM; typedef enum { @@ -21,7 +21,7 @@ typedef enum { void initVM(); void freeVM(); -InterpretResult interpret(Chunk *chunk); +InterpretResult interpret(const char *source); void push(Value value); Value pop(); |