summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-struct/src/struct.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-09-22 00:15:29 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-09-22 00:15:29 +0900
commit73dc32c670f4fcaed0f33477b6fe5d602edcece1 (patch)
treecbb1949c7926deac6de20d46438cf05cb0c78775 /mrbgems/mruby-struct/src/struct.c
parent386a2b8aa1617a967236dab4cfcdd685b04b465f (diff)
downloadmruby-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 'mrbgems/mruby-struct/src/struct.c')
0 files changed, 0 insertions, 0 deletions