美文网首页
Parse源码学习笔记

Parse源码学习笔记

作者: frank_kk | 来源:发表于2015-11-09 17:27 被阅读75次

weak:


/*!

Creates a __weak version of the variable provided,

which can later be safely used or converted into strong variable via @strongify.

*/

#define weakify(var) \

try {} @catch (...) {} \

__weak __typeof__(var) var ## _weak = var;

strong:


/*!

Creates a strong shadow reference of the variable provided.

Variable must have previously been passed to @weakify.

*/

#define strongify(var) \

try {} @catch (...) {} \

__strong __typeof__(var) var = var ## _weak;

相关文章

网友评论

      本文标题:Parse源码学习笔记

      本文链接:https://www.haomeiwen.com/subject/xvxhhttx.html