1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* class.c: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-12-04 02:18:42 +00:00
parent 0987b3cbc6
commit 5c6b43d91e
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Sat Dec 4 11:18:10 2010 Tanaka Akira <akr@fsij.org>
* class.c: parenthesize macro arguments.
Sat Dec 4 11:07:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_core.h (rb_vm_inc_const_missing_count): missing prototype.

View file

@ -272,7 +272,7 @@ rb_singleton_class_attached(VALUE klass, VALUE obj)
* @retval 1 if \a k is a meta^(n)-class of Class class (n >= 0)
* @retval 0 otherwise
*/
#define META_CLASS_OF_CLASS_CLASS_P(k) (METACLASS_OF(k) == k)
#define META_CLASS_OF_CLASS_CLASS_P(k) (METACLASS_OF(k) == (k))
/*!
@ -283,7 +283,7 @@ rb_singleton_class_attached(VALUE klass, VALUE obj)
* @note this macro creates a new eigenclass if necessary.
*/
#define ENSURE_EIGENCLASS(klass) \
(rb_ivar_get(METACLASS_OF(klass), id_attached) == klass ? METACLASS_OF(klass) : make_metaclass(klass))
(rb_ivar_get(METACLASS_OF(klass), id_attached) == (klass) ? METACLASS_OF(klass) : make_metaclass(klass))
/*!
@ -1224,7 +1224,7 @@ rb_undef_method(VALUE klass, const char *name)
#define SPECIAL_SINGLETON(x,c) do {\
if (obj == (x)) {\
return c;\
return (c);\
}\
} while (0)