diff options
Diffstat (limited to 'gc.h')
-rw-r--r-- | gc.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -57,6 +57,10 @@ rb_gc_debug_body(const char *mode, const char *msg, int st, void *ptr) #define RUBY_GC_INFO if(0)printf #endif +#define RUBY_MARK_NO_PIN_UNLESS_NULL(ptr) do { \ + VALUE markobj = (ptr); \ + if (RTEST(markobj)) {rb_gc_mark_no_pin(markobj);} \ +} while (0) #define RUBY_MARK_UNLESS_NULL(ptr) do { \ VALUE markobj = (ptr); \ if (RTEST(markobj)) {rb_gc_mark(markobj);} \ |