Skip to content

Enforce Jass vararg parameter limit - #1210

Merged
Frotty merged 5 commits into
masterfrom
limit-vararg-arguments
Jul 31, 2026
Merged

Enforce Jass vararg parameter limit#1210
Frotty merged 5 commits into
masterfrom
limit-vararg-arguments

Conversation

@Frotty

@Frotty Frotty commented Jul 31, 2026

Copy link
Copy Markdown
Member

Fixes #729.

Vararg calls now fail at the source location when lowering would exceed Jass's 31-parameter limit. Receivers and constructed objects count toward the generated total, and the diagnostic suggests multiple/cascade calls or passing a collection.

Tests cover free functions, methods, constructors, and both sides of the boundary. The full Gradle suite passes.

@Frotty
Frotty marked this pull request as ready for review July 31, 2026 13:17

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: acf9aa30f9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Frotty

Frotty commented Jul 31, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9690e33a06

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Frotty
Frotty merged commit f525296 into master Jul 31, 2026
6 checks passed
@Frotty
Frotty deleted the limit-vararg-arguments branch July 31, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vararg is limited to be size of 31

1 participant