mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
40412b7730
commit
b9228a014b
7 changed files with 50 additions and 32 deletions
2
ruby.h
2
ruby.h
|
@ -136,7 +136,7 @@ VALUE rb_uint2inum _((unsigned long));
|
|||
#define Qnil 4
|
||||
#define Qundef 6 /* undefined value for placeholder */
|
||||
|
||||
#define RTEST(v) ((VALUE)(v) & ~Qnil)
|
||||
#define RTEST(v) (((VALUE)(v) & ~Qnil) != 0)
|
||||
#define NIL_P(v) ((VALUE)(v) == Qnil)
|
||||
|
||||
#define CLASS_OF(v) rb_class_of((VALUE)(v))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue