• Yukihiro "Matz" Matsumoto's avatar
    add new functions mrb_gc_register/unregister; close #1411 · 73dc32c6
    Yukihiro "Matz" Matsumoto authored
    some routines need to refer mruby objects (e.g. callbacks), in that case
    you have to protect your objects from garbage collection. the new functions
    mrb_gc_register() keeps those objects from GC. you have to remove your
    objects using mrb_gc_unregister() when your C routines use mruby objects
    any longer, otherwise objects will leak.
    73dc32c6
mruby.h 19.4 KB