1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-04 04:50:22 +00:00
QB64-PE/tests
Matthew Kilgore 83533dc319 Add support for optional function arguments
Currently functions only have very limited optional argument support,
this expands it so that we can have more complex sets of optional
arguments for functions, such as multiple arguments where not all need
to be provided. This will be used in the future for some upcoming
functionality.

Note that this does not support any generic optional argument format,
the commas always have to be provided unless an optional argument is at
the end of the parameter list. Thus, if you have a format with two
optional arguments and you want to omit the second, then you need to call
it as 'foo(2, , 3)`, rather than `foo(2, 3)`. This is important for
avoiding ambiguous situations, and is how many SUBs currently function.

The two functions that violate that requirement are INSTR() and
_INSTRREV(), which use the format `[?],?,?` and allow omitting the comma
for the first argument. This format is simply handled as a special case.

Fixes: #303
2023-02-12 22:38:50 -05:00
..
c Add libqb_http API for HTTP connections 2022-11-19 15:13:26 -05:00
compile_tests Add support for optional function arguments 2023-02-12 22:38:50 -05:00
dist Add distribution tests 2022-04-28 17:21:58 -04:00
qbasic_testcases Add QBasic tests 2022-04-28 23:00:07 -04:00
.gitignore Don't archive test exes 2022-05-06 17:50:07 -04:00
assert.sh Only copy compilelog files if they exist 2022-05-12 00:21:02 -04:00
build.mk Add libqb_http API for HTTP connections 2022-11-19 15:13:26 -05:00
colors.sh Add distribution tests 2022-04-28 17:21:58 -04:00
compile_tests.sh Install Xvfb on Linux build agent 2022-11-29 20:04:53 -05:00
dist_tests.sh Fix setup_osx.command script when run from a different directory 2022-10-27 23:26:07 -04:00
qbasic_tests.sh Redirect stderr to compilelog rather than errorcompilelog 2022-05-18 09:20:30 -04:00
run_c_tests.sh Add libqb_http API for HTTP connections 2022-11-19 15:13:26 -05:00
run_dist_tests.sh Add distribution tests 2022-04-28 17:21:58 -04:00
run_tests.sh Step 10: Update remaining stuff 2022-08-12 02:54:12 +02:00