Skip to content

Commit

Permalink
Add default arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Aug 27, 2023
1 parent ab8f61e commit f792808
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions natives.json
Original file line number Diff line number Diff line change
Expand Up @@ -14560,7 +14560,8 @@
},
{
"type": "int",
"name": "p2"
"name": "p2",
"default": "0",
}
],
"return_type": "void",
Expand Down Expand Up @@ -69373,7 +69374,8 @@
},
{
"type": "BOOL",
"name": "includeEntering"
"name": "includeEntering",
"default": "FALSE"
}
],
"return_type": "Vehicle",
Expand Down Expand Up @@ -85467,7 +85469,8 @@
},
{
"type": "int",
"name": "p8"
"name": "p8",
"default": "0"
}
],
"return_type": "int",
Expand Down
4 changes: 4 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"name": {
"type": "string",
"pattern": "^[A-Za-z_]+[A-Za-z0-9_]*$"
},
"default": {
"type": "string",
"pattern": "^(0|TRUE|FALSE)$"
}
},
"required": ["type", "name"],
Expand Down

0 comments on commit f792808

Please sign in to comment.