Skip to content

Change layoutSizeDifferentFromBounds macro to a BOOL - #1718

Merged
ernestmama merged 1 commit into
TextureGroup:masterfrom
hanton:change-layoutSizeDifferentFromBounds-macro-to-BOOL
Nov 11, 2019
Merged

Change layoutSizeDifferentFromBounds macro to a BOOL#1718
ernestmama merged 1 commit into
TextureGroup:masterfrom
hanton:change-layoutSizeDifferentFromBounds-macro-to-BOOL

Conversation

@hanton

@hanton hanton commented Oct 28, 2019

Copy link
Copy Markdown
Contributor

Rather than defining layoutSizeDifferentFromBounds as a macro, a BOOL can do the job.

@ernestmama

Copy link
Copy Markdown
Contributor

It looks good to me but I am not sure if there is any particular reason to do it that way in the beginning. Would love some eyes from others.

@vovasty vovasty left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Macro looks ugly. imho much simpler just remove the macro and add a comment about this check.

@ernestmama
ernestmama merged commit 5f43300 into TextureGroup:master Nov 11, 2019
@hanton
hanton deleted the change-layoutSizeDifferentFromBounds-macro-to-BOOL branch November 11, 2019 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants