summaryrefslogtreecommitdiffstats
path: root/ruby.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-03 11:47:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-03 11:47:34 +0000
commitdb0d5fcaadf939aeeb3038ffc8e5b1b1e25c120c (patch)
tree08356791239f2f723b7c8092d372ac00e5fa9d2e /ruby.h
parent68b0f9d47f1dcbc873f5739e3345d88c78a59cc6 (diff)
downloadruby-db0d5fcaadf939aeeb3038ffc8e5b1b1e25c120c.tar.gz
ruby-db0d5fcaadf939aeeb3038ffc8e5b1b1e25c120c.tar.xz
ruby-db0d5fcaadf939aeeb3038ffc8e5b1b1e25c120c.zip
* ruby.h (SYMBOL_P): Qnil and Qfalse are not Symbol.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.h b/ruby.h
index c6cf32186..df0ae75e9 100644
--- a/ruby.h
+++ b/ruby.h
@@ -195,7 +195,7 @@ VALUE rb_ull2inum(unsigned LONG_LONG);
#define IMMEDIATE_MASK 0x03
#define IMMEDIATE_P(x) ((VALUE)(x) & IMMEDIATE_MASK)
-#define SYMBOL_P(x) (!IMMEDIATE_P(x) && RBASIC(x)->klass == rb_cSymbol)
+#define SYMBOL_P(x) (!SPECIAL_CONST_P(x) && RBASIC(x)->klass == rb_cSymbol)
VALUE rb_id2sym(ID);
ID rb_sym2id(VALUE);
#define ID2SYM(x) rb_id2sym(x)