MRI-Binding: Optimize RB_ARG_END vaarg guard
It's enough to check this only in debug mode. Make this an empty define in release mode.
This commit is contained in:
parent
d7ceff91a2
commit
c504a383ba
16 changed files with 61 additions and 52 deletions
|
@ -52,7 +52,7 @@ RB_METHOD(viewportElementSetViewport)
|
|||
VALUE viewportObj = Qnil;
|
||||
Viewport *viewport = 0;
|
||||
|
||||
rb_get_args(argc, argv, "o", &viewportObj, RB_ARG_END);
|
||||
rb_get_args(argc, argv, "o", &viewportObj RB_ARG_END);
|
||||
|
||||
if (rb_type(viewportObj) != RUBY_T_NIL)
|
||||
viewport = getPrivateDataCheck<Viewport>(viewportObj, ViewportType);
|
||||
|
@ -74,7 +74,7 @@ viewportElementInitialize(int argc, VALUE *argv, VALUE self)
|
|||
VALUE viewportObj = Qnil;
|
||||
Viewport *viewport = 0;
|
||||
|
||||
rb_get_args(argc, argv, "|o", &viewportObj, RB_ARG_END);
|
||||
rb_get_args(argc, argv, "|o", &viewportObj RB_ARG_END);
|
||||
|
||||
if (rb_type(viewportObj) != RUBY_T_NIL)
|
||||
viewport = getPrivateDataCheck<Viewport>(viewportObj, ViewportType);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue