MRuby-Binding: Reduce number of object allocations
This is the same change as f067e0eff8
,
applied to the mruby backend.
This commit is contained in:
parent
bdcf1503bd
commit
0ab543fd75
11 changed files with 28 additions and 63 deletions
|
@ -95,7 +95,7 @@ DEF_TYPE(Rect);
|
|||
param_type p1, p2, p3, p4 = last_param_def; \
|
||||
mrb_get_args(mrb, param_t_s, &p1, &p2, &p3, &p4); \
|
||||
Klass *k = new Klass(p1, p2, p3, p4); \
|
||||
setPrivateData(mrb, self, k, Klass##Type); \
|
||||
setPrivateData(self, k, Klass##Type); \
|
||||
return self; \
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue