diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-09-22 00:15:29 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-09-22 00:15:29 +0900 |
| commit | 73dc32c670f4fcaed0f33477b6fe5d602edcece1 (patch) | |
| tree | cbb1949c7926deac6de20d46438cf05cb0c78775 /src/variable.c | |
| parent | 386a2b8aa1617a967236dab4cfcdd685b04b465f (diff) | |
| download | mruby-73dc32c670f4fcaed0f33477b6fe5d602edcece1.tar.gz mruby-73dc32c670f4fcaed0f33477b6fe5d602edcece1.zip | |
add new functions mrb_gc_register/unregister; close #1411
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.
Diffstat (limited to 'src/variable.c')
0 files changed, 0 insertions, 0 deletions
