Repository navigation
Conversation
mruby 4 makes presym mandatory (disable_presym is gone), writes the presym headers into the build tree, and enforces mrb_aspec argument counts for C methods. CMake puts the generated include directory on the ruby target's path; mruby.c reads the backtrace API from mruby/internal.h since 3.2, and registers script methods with MRB_ARGS_ANY() so the binding keeps validating its own defaults (btn(), clip(), vbank()). The five zero-argument APIs keep MRB_ARGS_NONE() and still refuse arguments. Verified: 15/15 ctest; the ruby conformance table matches the 3.0 baseline (127/127 coverage, the same 8 known divergences); full Android (NDK r23b) and wasm builds. Co-Authored-By: Claude Code <noreply@anthropic.com>
mruby 4 writes the presym headers during the build; the compile database alone leaves mruby.c without them, and clang-tidy fails on the missing header. Install Ruby for the mruby build and generate the headers before the checker runs. Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The vendored mruby moves from 3.0.0-dev (7fe6f397, April 2021) to 4.0.0 (831da26b).
mruby 4 makes presym mandatory, writes the presym headers into the build tree, and enforces
mrb_aspecargument counts for C methods.disable_presymis gone from both build configs; CMake putsvendor/mruby/build/target/includeon the ruby target's include path for the generated presym headers.mruby/internal.hsince 3.2, somruby.cincludes it underMRUBY_RELEASE_NO >= 30200.MRB_ARGS_ANY(): the binding validates its own defaults, and the API table's required counts describe the C API, not the script defaults (btn(),clip(),vbank()). The five zero-argument APIs (time,tstamp,exit,mouse,reset) keepMRB_ARGS_NONE()and still refuse arguments.Verified locally:
ctest: 15/15;libtic80.sowith all languages and mruby 4.0;Not verified locally: Windows/MSVC and the consoles that use a system mruby (
PREFER_SYSTEM_LIBRARIES); CI covers those.Note for local testing: a tree that still carries a
vendor/mruby/buildfrom 3.0 may need it removed once — mruby'sgensymstep can trip on the old layout. Fresh checkouts and CI are unaffected.🤖 Generated with Claude Code