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 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;