From fa8891ffe017ae890f0ef07915cf8b52acd7304a Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 20 Jun 2024 21:45:57 +0100 Subject: add true, false, nil keywords --- val.h | 1 + 1 file changed, 1 insertion(+) (limited to 'val.h') diff --git a/val.h b/val.h index 4c84fd9..db0a789 100644 --- a/val.h +++ b/val.h @@ -49,6 +49,7 @@ typedef struct { // Constructs a new objstring from the given C string, // creating its own fresh copy of the data. ObjString *objstring_copy(State *S, char *src, size_t len); +ObjString *objstring_copy_cstr(State *s, char *str); // Constructs a new objstring from the given C string, // taking ownership of the provided data. ObjString *objstring_take(State *S, char *src, size_t len); -- cgit v1.2.3