Skip to content

Support EFUN up-to 127 arguments#977

Merged
thefallentree merged 2 commits intomasterfrom
dev
May 30, 2023
Merged

Support EFUN up-to 127 arguments#977
thefallentree merged 2 commits intomasterfrom
dev

Conversation

@thefallentree
Copy link
Copy Markdown
Member

@thefallentree thefallentree commented May 30, 2023

fix #960

int i, len;
if (min_arg == -1) min_arg = $5;
if (min_arg > 4) yyerror("min_arg > 4\n");
if (min_arg > 127) yyerror("min_arg > 127\n");
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nicer if an english readable error were here too - such as:
"You are using more than 127 arguments in an efun error.".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

min_arg > 4 error on our new 5 argument efuns.

3 participants