mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-17 03:40:18 +00:00
Add ASDynamicCast (#2586)
This commit is contained in:
parent
6bbc9a3cb0
commit
1eb2bb6606
@ -182,3 +182,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ASOVERLOADABLE __attribute__((overloadable))
|
#define ASOVERLOADABLE __attribute__((overloadable))
|
||||||
|
|
||||||
|
/// Ensure that class is of certain kind
|
||||||
|
#define ASDynamicCast(x, c) ((c *) ([x isKindOfClass:[c class]] ? x : nil))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user