Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation for mrb_top_run() #6256

Merged
merged 1 commit into from Apr 27, 2024
Merged

Conversation

dearblue
Copy link
Contributor

Also, add explanations for the mrb_load_irep() and mrb_load_string() families, which are indirect calls to mrb_top_run().


I added a new feature to my mruby-gemcut and it took me a while to figure out the cause crash.
I need to call mrb_top_run() indirectly from inside the method, so using mrb_proc_new_cfunc() and mrb_yield_with_class() as workarounds.
Gemcut.facet method

I was concerned about compatibility if I changed the behavior from within the mruby VM, so I added a note to the documentation first.
I can't think of a better way at this time.

Also, add explanations for the `mrb_load_irep()` and `mrb_load_string()` families, which are indirect calls to `mrb_top_run()`.
@dearblue dearblue requested a review from matz as a code owner April 26, 2024 13:22
@github-actions github-actions bot added the core label Apr 26, 2024
@matz matz merged commit 7cea1cd into mruby:master Apr 27, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants