mirror of
https://github.com/janet-lang/janet
synced 2025-10-28 06:07:43 +00:00
Add proper optional arguments.
Use &opt in the parameter list to get optional arguments.
This commit is contained in:
@@ -208,6 +208,8 @@ JanetFuncDef *janet_funcdef_alloc() {
|
||||
def->flags = 0;
|
||||
def->slotcount = 0;
|
||||
def->arity = 0;
|
||||
def->min_arity = 0;
|
||||
def->max_arity = INT32_MAX;
|
||||
def->source = NULL;
|
||||
def->sourcemap = NULL;
|
||||
def->name = NULL;
|
||||
|
||||
Reference in New Issue
Block a user