From d5f352e577acf1f472150df5578ff6d693258ae3 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 7 Sep 2021 22:54:12 -0700 Subject: Chapter 19.4 --- clox/src/object.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clox/src/object.h') diff --git a/clox/src/object.h b/clox/src/object.h index 2a87a51..a26077f 100644 --- a/clox/src/object.h +++ b/clox/src/object.h @@ -25,7 +25,9 @@ struct ObjString { char *chars; }; +ObjString *takeString(char *chars, int length); ObjString *copyString(const char *chars, int length); +void printObject(Value value); static inline bool isObjType(Value value, ObjType type) { return IS_OBJ(value) && AS_OBJ(value)->type == type; -- cgit v1.2.3-54-g00ecf