* vm_method.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9d155ebf51
commit
8dc0eb6c4b
@ -1,3 +1,7 @@
|
|||||||
|
Fri Jan 14 23:25:55 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* vm_method.c: parenthesize macro arguments.
|
||||||
|
|
||||||
Fri Jan 14 15:32:29 2011 Shugo Maeda <shugo@ruby-lang.org>
|
Fri Jan 14 15:32:29 2011 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
* test/net/imap/test_imap.rb: call neither logout nor disconnect
|
* test/net/imap/test_imap.rb: call neither logout nor disconnect
|
||||||
|
@ -285,10 +285,10 @@ rb_method_entry_make(VALUE klass, ID mid, rb_method_type_t type,
|
|||||||
|
|
||||||
#define CALL_METHOD_HOOK(klass, hook, mid) do { \
|
#define CALL_METHOD_HOOK(klass, hook, mid) do { \
|
||||||
const VALUE arg = ID2SYM(mid); \
|
const VALUE arg = ID2SYM(mid); \
|
||||||
VALUE recv_class = klass; \
|
VALUE recv_class = (klass); \
|
||||||
ID hook_id = hook; \
|
ID hook_id = (hook); \
|
||||||
if (FL_TEST(klass, FL_SINGLETON)) { \
|
if (FL_TEST((klass), FL_SINGLETON)) { \
|
||||||
recv_class = rb_ivar_get(klass, attached); \
|
recv_class = rb_ivar_get((klass), attached); \
|
||||||
hook_id = singleton_##hook; \
|
hook_id = singleton_##hook; \
|
||||||
} \
|
} \
|
||||||
rb_funcall2(recv_class, hook_id, 1, &arg); \
|
rb_funcall2(recv_class, hook_id, 1, &arg); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user