mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fix ASDISPLAYNODE_ASSERTIONS_ENABLED and ASDefaultPlaybackButton warnings #trivial (#880)
* Define ASDISPLAYNODE_ASSERTIONS_ENABLED explicitly * Add parameter type for drawRect: in ASDefaultPlaybackButton
This commit is contained in:
committed by
GitHub
parent
9d5857664f
commit
0aefbb65ba
@@ -21,7 +21,11 @@
|
||||
#import <pthread.h>
|
||||
#import <AsyncDisplayKit/ASBaseDefines.h>
|
||||
|
||||
#define ASDISPLAYNODE_ASSERTIONS_ENABLED (!defined(NS_BLOCK_ASSERTIONS))
|
||||
#if !defined(NS_BLOCK_ASSERTIONS)
|
||||
#define ASDISPLAYNODE_ASSERTIONS_ENABLED 1
|
||||
#else
|
||||
#define ASDISPLAYNODE_ASSERTIONS_ENABLED 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Note: In some cases it would be sufficient to do e.g.:
|
||||
|
||||
Reference in New Issue
Block a user