Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 4e86ca2

Browse files
committed
Merge pull request #670 from facebook/FixTextBuild
Fix building test / profile under Xcode 7
2 parents a6dba10 + a8924a2 commit 4e86ca2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

AsyncDisplayKit/Layout/ASLayout.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ + (instancetype)layoutWithLayoutableObject:(id<ASLayoutable>)layoutableObject
2828
sublayouts:(NSArray *)sublayouts
2929
{
3030
ASDisplayNodeAssert(layoutableObject, @"layoutableObject is required.");
31+
#if DEBUG
3132
for (ASLayout *sublayout in sublayouts) {
3233
ASDisplayNodeAssert(!CGPointIsNull(sublayout.position), @"Invalid position is not allowed in sublayout.");
3334
}
35+
#endif
3436

3537
ASLayout *l = [super new];
3638
if (l) {

0 commit comments

Comments
 (0)