iOS weakify && strongify
2021-01-21 本文已影响0人
青椒辣不辣
#define rj_weakify(var) __weak typeof(var) RJWeak_##var = var;
#define rj_strongify(var) \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Wshadow\"") \
__strong typeof(var) var = RJWeak_##var; \
_Pragma("clang diagnostic pop")