From b131e343bb8a2b126a5370138d826d87d74fce30 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 2 Aug 2021 18:09:03 -0700 Subject: Chapter 16.1 --- clox/src/vm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clox/src/vm.h') 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(); -- cgit v1.2.3-54-g00ecf