TestsTested | ✓ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Oct 2016 |
Maintained by Games Neox.
Depends on: | |
GNExceptions | >= 0 |
GNLog | >= 0 |
Defenensive-code tool for Objective-C/Swift (enabled for DEBUG
builds only)
@interface GNPreconditions : NSObject
+ (void)checkNotNil:(nullable id)testObject :(nonnull NSString*)errorMessage;
+ (void)checkCondition:(BOOL)testCondition :(nonnull Class)exceptionClass :(nonnull NSString*)errorMessage;
@end
To run the example project, clone the repo, and run pod install
from the Example directory first.
Minimum supported iOS
version: 8.x
Dependencies: GNExceptions
& GNLog
GNPreconditions is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "GNPreconditions"
Games Neox, [email protected]
GNPreconditions is available under the MIT license. See the LICENSE file for more info.