Skip to content

prep: extend C stubs to APIs with instride inputs#525

Draft
ferronn-dev wants to merge 1 commit intomainfrom
prep/instride-c-stubs
Draft

prep: extend C stubs to APIs with instride inputs#525
ferronn-dev wants to merge 1 commit intomainfrom
prep/instride-c-stubs

Conversation

@ferronn-dev
Copy link
Copy Markdown
Member

Summary

  • Adds instride support to the C stub generator in prep.lua, matching the behavior already present in the stubby Lua stub generator
  • Fixed inputs (1..nsins) are checked at their literal stack positions as before
  • Stride inputs are checked inside a C for loop (for (int i = nsins+1; i <= top; i += instride))
  • Extracts an emitinpcheck helper to avoid duplicating the type→function-name mapping between fixed and stride paths

Test plan

  • All existing tests pass (cmake --build --preset default --target test)
  • No APIs currently qualify as C stubs with instride (all existing instride APIs have ineligible types like unknown/table), but the generator is ready for when they do

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ferronn-dev ferronn-dev force-pushed the prep/instride-c-stubs branch from c8c818d to 8660560 Compare February 18, 2026 22:32
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.

1 participant