diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gc.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Tue Jul 21 12:45:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * gc.c (rb_gc_enable, rb_gc_disable): should return Qtrue/Qfalse. + Tue Jul 21 12:38:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * variable.c (rb_generic_ivar_memsize): should not remove generic @@ -789,7 +789,7 @@ rb_gc_enable(void) int old = dont_gc; dont_gc = FALSE; - return old; + return old ? Qtrue : Qfalse; } /* @@ -811,7 +811,7 @@ rb_gc_disable(void) int old = dont_gc; dont_gc = TRUE; - return old; + return old ? Qtrue : Qfalse; } VALUE rb_mGC; |