From 60e752c0c5ae3798105919a43ee194e1e897d429 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 7 Sep 2021 22:34:21 -0700 Subject: Chapter 19.3 --- 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 7ab8f3a..2a87a51 100644 --- a/clox/src/object.h +++ b/clox/src/object.h @@ -25,6 +25,8 @@ struct ObjString { char *chars; }; +ObjString *copyString(const char *chars, int length); + static inline bool isObjType(Value value, ObjType type) { return IS_OBJ(value) && AS_OBJ(value)->type == type; } -- cgit v1.2.3-54-g00ecf