From 14b3866ac09c80b8f34d79227d743eabb2da0f2a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 4 Jun 2022 22:00:27 -0700 Subject: Chapter 26.1, 26.2, 26.3, and 26.4 --- clox/src/memory.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clox/src/memory.h') diff --git a/clox/src/memory.h b/clox/src/memory.h index f7946f6..b1a8327 100644 --- a/clox/src/memory.h +++ b/clox/src/memory.h @@ -19,6 +19,9 @@ reallocate(pointer, sizeof(type) * (oldCount), 0) void *reallocate(void *pointer, size_t oldSize, size_t newSize); +void markObject(Obj *object); +void markValue(Value value); +void collectGarbage(); void freeObjects(); #endif -- cgit v1.2.3-54-g00ecf