aboutsummaryrefslogtreecommitdiffstats
path: root/clox/src/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'clox/src/object.h')
-rw-r--r--clox/src/object.h2
1 files changed, 2 insertions, 0 deletions
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;
}