MRI: some minor optimizations
This commit is contained in:
parent
cb39c2f345
commit
f06769b434
6 changed files with 24 additions and 22 deletions
|
@ -322,7 +322,7 @@ rb_check_argc(int actual, int expected)
|
|||
Klass *k = getPrivateData<Klass>(self); \
|
||||
VALUE propObj = *argv; \
|
||||
PropKlass *prop; \
|
||||
if (rb_type(propObj) == RUBY_T_NIL) \
|
||||
if (NIL_P(propObj)) \
|
||||
prop = 0; \
|
||||
else \
|
||||
prop = getPrivateDataCheck<PropKlass>(propObj, PropKlass##Type); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue