Skip to content

Commit

Permalink
Move AS_TEXT_ALERT_UNIMPLEMENTED_FEATURE into ASTextNodeCommon (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
maicki committed Oct 25, 2018
1 parent 14681c0 commit 8382edd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Source/ASTextNode2.mm
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ @implementation ASTextCacheValue
*/
#define AS_TEXTNODE2_RECORD_ATTRIBUTED_STRINGS 0

#define AS_TEXT_ALERT_UNIMPLEMENTED_FEATURE() { \
static dispatch_once_t onceToken; \
dispatch_once(&onceToken, ^{ \
NSLog(@"[Texture] Warning: Feature %@ is unimplemented in the experimental text node.", NSStringFromSelector(_cmd)); \
});\
}

/**
* If it can't find a compatible layout, this method creates one.
*
Expand Down
7 changes: 7 additions & 0 deletions Source/ASTextNodeCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@

@class ASTextNode;

#define AS_TEXT_ALERT_UNIMPLEMENTED_FEATURE() { \
static dispatch_once_t onceToken; \
dispatch_once(&onceToken, ^{ \
NSLog(@"[Texture] Warning: Feature %@ is unimplemented in %@.", NSStringFromSelector(_cmd), NSStringFromClass(self.class)); \
});\
}

/**
* Highlight styles.
*/
Expand Down

0 comments on commit 8382edd

Please sign in to comment.