Pass value object attributes by reference (instead of pointer)
This underlines that no reference inside the setter is taken, and that these attributes are non-nullable. Also removes a couple of superfluous attribute macros.
This commit is contained in:
parent
5549ff78f0
commit
c9d5059238
29 changed files with 92 additions and 110 deletions
|
@ -38,9 +38,9 @@ MRB_METHOD(spriteInitialize)
|
|||
/* Wrap property objects */
|
||||
s->initDynAttribs();
|
||||
|
||||
wrapProperty(mrb, self, s->getSrcRect(), CSsrc_rect, RectType);
|
||||
wrapProperty(mrb, self, s->getColor(), CScolor, ColorType);
|
||||
wrapProperty(mrb, self, s->getTone(), CStone, ToneType);
|
||||
wrapProperty(mrb, self, &s->getSrcRect(), CSsrc_rect, RectType);
|
||||
wrapProperty(mrb, self, &s->getColor(), CScolor, ColorType);
|
||||
wrapProperty(mrb, self, &s->getTone(), CStone, ToneType);
|
||||
|
||||
return self;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue