aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/include
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2026-01-31 13:16:02 -0600
committerCalvin Rose <calsrose@gmail.com>2026-01-31 13:16:02 -0600
commit8f8382eead8f6d01a6656ee6e78f8f4c9dbb3541 (patch)
tree8a450dd63160e051fb88603af72644c9b59b7ef8 /src/include
parentUpdate copyright. (diff)
Partially address issue #1654 - better linting for named arguments.
While there are still cases that we could improve here, this change will help in most cases with minimal overhead.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/janet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/janet.h b/src/include/janet.h
index add1df78..8514ed1d 100644
--- a/src/include/janet.h
+++ b/src/include/janet.h
@@ -1074,6 +1074,7 @@ struct JanetAbstractHead {
#define JANET_FUNCDEF_FLAG_HASSOURCEMAP 0x800000
#define JANET_FUNCDEF_FLAG_STRUCTARG 0x1000000
#define JANET_FUNCDEF_FLAG_HASCLOBITSET 0x2000000
+#define JANET_FUNCDEF_FLAG_NAMEDARGS 0x4000000
#define JANET_FUNCDEF_FLAG_TAG 0xFFFF
/* Source mapping structure for a bytecode instruction */
@@ -1115,6 +1116,7 @@ struct JanetFuncDef {
int32_t environments_length;
int32_t defs_length;
int32_t symbolmap_length;
+ int32_t named_args_count;
};
/* A function environment */