diff options
Diffstat (limited to 'val.h')
-rw-r--r-- | val.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -54,6 +54,7 @@ typedef struct { typedef struct { Obj obj; Chunk ch; + uint8_t arity; } ObjFunc; // Constructs a new objstring from the given C string, @@ -64,7 +65,7 @@ ObjString *objstring_copy_cstr(State *s, char *str); // taking ownership of the provided data. ObjString *objstring_take(State *S, char *src, size_t len); -ObjFunc *objfunc_new(State *S); +ObjFunc *objfunc_new(State *S, uint8_t arity); #define IS_NIL(x) (x.ty == TY_NIL) #define IS_NUM(x) (x.ty == TY_NUM) |