Skip to content

Commit

Permalink
Move AS_TEXT_ALERT_UNIMPLEMENTED_FEATURE into ASTextNodeCommon (Textu…
Browse files Browse the repository at this point in the history
  • Loading branch information
maicki authored and mikezucc committed Nov 7, 2018
1 parent 8e4932e commit cdb94d3
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 cdb94d3

Please sign in to comment.