Skip to content

support args >= 4 via the stack in _arg template#138

Merged
Mr-Wiseguy merged 2 commits into
N64Recomp:mainfrom
gcsmith:stack_args
May 27, 2026
Merged

support args >= 4 via the stack in _arg template#138
Mr-Wiseguy merged 2 commits into
N64Recomp:mainfrom
gcsmith:stack_args

Conversation

@gcsmith
Copy link
Copy Markdown
Contributor

@gcsmith gcsmith commented Jan 18, 2026

The minimum standard is C++20, so require() should be OK. Not sure about the supported compiler versions though.

I'm not handling float/double for index >= 4 because it's already constrained to only supporting index == 0, and it doesn't seem like there's any use case for it in the runtime.

@gcsmith
Copy link
Copy Markdown
Contributor Author

gcsmith commented Jan 18, 2026

If compiler support is a problem I can switch to std::enable_if or some other SFINAE mechanism.

@Mr-Wiseguy Mr-Wiseguy merged commit ae1ffbb into N64Recomp:main May 27, 2026
10 checks passed
gcsmith added a commit to gcsmith/N64ModernRuntime that referenced this pull request May 27, 2026
* support args >= 4 via the stack

* fix offset
gcsmith added a commit to gcsmith/N64ModernRuntime that referenced this pull request May 27, 2026
* support args >= 4 via the stack

* fix offset
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.

2 participants