Add ASDynamicCast (#2586)

This commit is contained in:
Michael Schneider 2016-11-09 14:41:45 -08:00 committed by Adlai Holler
parent 6bbc9a3cb0
commit 1eb2bb6606

View File

@ -182,3 +182,6 @@
#endif
#define ASOVERLOADABLE __attribute__((overloadable))
/// Ensure that class is of certain kind
#define ASDynamicCast(x, c) ((c *) ([x isKindOfClass:[c class]] ? x : nil))