Skip to content

Update documentation for mrb_top_run()#6256

Merged
matz merged 1 commit intomruby:masterfrom
dearblue:doc/mrb_top_run
Apr 27, 2024
Merged

Update documentation for mrb_top_run()#6256
matz merged 1 commit intomruby:masterfrom
dearblue:doc/mrb_top_run

Conversation

@dearblue
Copy link
Copy Markdown
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
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.

2 participants