mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Add extension points for global node behaviors, potentially replacing interface state delegates (#1229)
* Add extension points for global node behaviors via categories and a public ivar * Update documentation on context ivar
This commit is contained in:
@@ -24,6 +24,12 @@
|
||||
#define AS_BUILD_UIUSERINTERFACESTYLE 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Decorates methods that clients can implement in categories on our base class. These methods
|
||||
* will be stubbed with an empty implementation if no implementation is provided.
|
||||
*/
|
||||
#define AS_CATEGORY_IMPLEMENTABLE
|
||||
|
||||
#ifdef __GNUC__
|
||||
# define ASDISPLAYNODE_GNUC(major, minor) \
|
||||
(__GNUC__ > (major) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor)))
|
||||
|
||||
Reference in New Issue
Block a user