summaryrefslogtreecommitdiff
path: root/val.h
diff options
context:
space:
mode:
Diffstat (limited to 'val.h')
-rw-r--r--val.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/val.h b/val.h
index 6aa85c5..4ee76d2 100644
--- a/val.h
+++ b/val.h
@@ -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)