diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-03 11:47:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-03 11:47:34 +0000 |
commit | db0d5fcaadf939aeeb3038ffc8e5b1b1e25c120c (patch) | |
tree | 08356791239f2f723b7c8092d372ac00e5fa9d2e /ruby.h | |
parent | 68b0f9d47f1dcbc873f5739e3345d88c78a59cc6 (diff) | |
download | ruby-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |