mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 15:30:50 +00:00
[cexpr] Use func instead of result type for end of list
While the cexpr parser itself doesn't support void functions, they have their uses when used with the system, and mixing them into the list of function overloads shouldn't break non-void functions.
This commit is contained in:
parent
2748f1c9f7
commit
6f429311c9
1 changed files with 4 additions and 1 deletions
|
@ -390,7 +390,10 @@ static exprval_t *function_expr (exprsym_t *fsym, exprlist_t *list,
|
|||
*(int *) result->value = 0;
|
||||
return result;
|
||||
}
|
||||
for (exprfunc_t *f = fsym->value; f->result; f++) {
|
||||
for (exprfunc_t *f = fsym->value; f->func; f++) {
|
||||
if (!f->result) {
|
||||
continue;
|
||||
}
|
||||
int num_params = f->num_params;
|
||||
if (num_params >= 0 && num_args == num_params) {
|
||||
} else if (num_params < 0 && num_args >= ~num_params) {
|
||||
|
|
Loading…
Reference in a new issue