Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YYSYNTH_DUMMY_CLASS宏所带来的疑问. #33

Open
xclidongbo opened this issue Nov 7, 2016 · 1 comment
Open

YYSYNTH_DUMMY_CLASS宏所带来的疑问. #33

xclidongbo opened this issue Nov 7, 2016 · 1 comment

Comments

@xclidongbo
Copy link

#ifndef YYSYNTH_DUMMY_CLASS
#define YYSYNTH_DUMMY_CLASS(_name_) \
@interface YYSYNTH_DUMMY_CLASS_ ## _name_ : NSObject @end \
@implementation YYSYNTH_DUMMY_CLASS_ ## _name_ @end
#endif

YYSYNTH_DUMMY_CLASS(NSString_YYAdd)
预编译后的内容:

@interface YYSYNTH_DUMMY_CLASS_NSString_YYAdd : NSObject @end
@implementation YYSYNTH_DUMMY_CLASS_NSString_YYAdd @end

这样可以防止在工程中的文件中加入-all_load``-force_load
这点原理,没搞明白,有相关的资料没?
http://developer.apple.com/library/mac/#qa/qa2006/qa1490.html
这个网址打开找不到.

@comcuter
Copy link

comcuter commented Jul 7, 2017

@xclidongbo 查其他问题看到这个, 这个应该是参考了 Three20 的 TT_FIX_CATEGORY_BUG.
把损坏的地址放到 google 里搜一下, 可以找到这个地址.
https://developer.apple.com/library/content/qa/qa1490/_index.html 应该是一样的, 希望有帮助.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants