编写category时的便利宏(用于解决category方法从静态库中加载需要特别设置的问题)
2024-10-10 21:39:22
代码摘录自YYKit:https://github.com/ibireme/YYKit
/**
Add this macro before each category implementation, so we don't have to use
-all_load or -force_load to load object files from static libraries that only
contain categories and no classes.
More info: http://developer.apple.com/library/mac/#qa/qa2006/qa1490.html .
*******************************************************************************
Example:
YYSYNTH_DUMMY_CLASS(NSString_YYAdd)
*/
#ifndef YYSYNTH_DUMMY_CLASS
#define YYSYNTH_DUMMY_CLASS(_name_) \
@interface YYSYNTH_DUMMY_CLASS_ ## _name_ : NSObject @end \
@implementation YYSYNTH_DUMMY_CLASS_ ## _name_ @end
#endif
最新文章
- mysql 插入中文报错: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value...
- leetcode51. N-Queens
- don't forget the bigger picture
- Mybatis的分页插件PageHelper
- Spark1.2新特性概述
- hostname、uname、dmesg、fdisk
- [AngularJS] Use ng-model-options to limit $digest
- 14.3.5.2 Deadlock Detection and Rollback 死锁检测和回滚:
- SyntaxHighlighter代码高亮插件
- Swift 学习笔记 (三) 之循环引用浅析
- jquery.datetimepicker.js 当鼠标离开时,不选中当前时间,以达到清空的目的
- 安全性测试之防范 DDoS 攻击
- 读取Json,并替换json中的指定字符
- NGUI外包开发总结一下今天的收获
- c++ 怎么输出保留2位小数的浮点数
- L2-024. 部落(并查集)*
- SpringBoot小新手。
- 【托业】【新托业TOEIC新题型真题】学习笔记9-题库七+八--P4-5
- Tensorflow安装环境更新
- Combination Sum leetcode java