new API mrb_gc_protect() to add object to arena

This commit is contained in:
Yukihiro Matsumoto
2012-06-01 02:40:52 +09:00
parent b7d5ccdb36
commit e36285769a
2 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -506,7 +506,7 @@ mrb_value mrb_exec_recursive(mrb_state *mrb, mrb_value(*)(mrb_state *, mrb_value
#define xfree free
#endif
void mrb_gc(void);
void mrb_gc_protect(mrb_state *mrb, mrb_value obj);
#define thread_debug if(0)printf
#define RUBY_VM 1 /* YARV */