diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-23 01:19:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-23 01:19:43 +0000 |
commit | 6801c1c83bcf2b4d03c8298d0548f6bcc7f5efc0 (patch) | |
tree | c56c873ac9413255e58098bf600af9d766a3dadc /include/ruby/ruby.h | |
parent | a5d4f06be18e1fe2007ed6966d6c83793f8bc339 (diff) | |
download | ruby-6801c1c83bcf2b4d03c8298d0548f6bcc7f5efc0.tar.gz ruby-6801c1c83bcf2b4d03c8298d0548f6bcc7f5efc0.tar.xz ruby-6801c1c83bcf2b4d03c8298d0548f6bcc7f5efc0.zip |
* include/ruby/ruby.h (USE_SYMBOL_AS_METHOD_NAME): Module#methods,
#singleton_methods and so on return Symbols. [ruby-talk:328775]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/ruby.h')
-rw-r--r-- | include/ruby/ruby.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 1dcff00a6..4f28b9d69 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -286,6 +286,9 @@ VALUE rb_ull2inum(unsigned LONG_LONG); #define ID2SYM(x) (((VALUE)(x)<<RUBY_SPECIAL_SHIFT)|SYMBOL_FLAG) #define SYM2ID(x) RSHIFT((unsigned long)x,RUBY_SPECIAL_SHIFT) +/* Module#methods, #singleton_methods and so on return Symbols */ +#define USE_SYMBOL_AS_METHOD_NAME 1 + /* special constants - i.e. non-zero and non-fixnum constants */ enum ruby_special_consts { RUBY_Qfalse = 0, |