summaryrefslogtreecommitdiffhomepage
path: root/src/gc.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-08-04 00:50:03 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-08-04 00:50:03 +0900
commit6aa6e75f75a80db69c54c419043e9ef8240c9ad8 (patch)
tree7c146da5945fac6c69309193eb881564a67f0f0f /src/gc.c
parent206f89e2090524f009fc5a87f42c15a453ebdbee (diff)
downloadmruby-6aa6e75f75a80db69c54c419043e9ef8240c9ad8.tar.gz
mruby-6aa6e75f75a80db69c54c419043e9ef8240c9ad8.zip
rename obsolete mrb_special_const_p to mrb_immediate_p
Diffstat (limited to 'src/gc.c')
-rw-r--r--src/gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gc.c b/src/gc.c
index 6616d6188..248c519cd 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -389,7 +389,7 @@ gc_protect(mrb_state *mrb, struct RBasic *p)
MRB_API void
mrb_gc_protect(mrb_state *mrb, mrb_value obj)
{
- if (mrb_special_const_p(obj)) return;
+ if (mrb_immediate_p(obj)) return;
gc_protect(mrb, mrb_basic_ptr(obj));
}