测试已测试 | ✓ |
Lang语言 | Obj-CObjective C |
许可证 | MIT |
发布最新发布 | 2016 年 10 月 |
由 Games Neox 维护。
依赖关系 | |
GNExceptions | >= 0 |
GNLog | >= 0 |
Objective-C/Swift 的防御性代码工具(仅启用 DEBUG
构建)
@interface GNPreconditions : NSObject
+ (void)checkNotNil:(nullable id)testObject :(nonnull NSString*)errorMessage;
+ (void)checkCondition:(BOOL)testCondition :(nonnull Class)exceptionClass :(nonnull NSString*)errorMessage;
@end
要运行示例项目,克隆存储库,然后首先从 Example 目录运行 pod install
最低支持的 iOS
版本: 8.x
依赖项: GNExceptions
& GNLog
GNPreconditions 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile
pod "GNPreconditions"
Games Neox,[email protected]
GNPreconditions 在 MIT 许可证下提供。有关更多信息,请参阅 LICENSE 文件。