//最終結果就是獲取參數的個數 1、count = metamacro_argcount(1,3,4,5); 2、count = metamacro_at(20, 1,3,4,5, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1) 3、count = metamacro_concat(metamacro_at, 20)(1,3,4,5, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1) 4、count = metamacro_at20(1,3,4,5, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1) 5、count = metamacro_head(1,3,4,5) 6、count = metamacro_head_(1,3,4,5,, 0) 7、count = 4 //參數個數
#define weakify(...) \ rac_keywordify \ metamacro_foreach_cxt(rac_weakify_,, __weak, __VA_ARGS__)
1.@autoreleasepool {} metamacro_foreach_cxt(rac_weakify_,, __weak, self) 2.@autoreleasepool {} metamacro_concat(metamacro_foreach_cxt, metamacro_argcount(self))(rac_weakify_,, __weak, self) 3、@autoreleasepool {}metamacro_foreach_cxt1(rac_weakify_,, __weak, self) 4、@autoreleasepool {}rac_weakify_(0, __weak, self) 5、@autoreleasepool {} __weak __typeof__(self) metamacro_concat(self, _weak_) = (self) 6、@autoreleasepool {} __weak __typeof__(self) _weak_self = (self)