GNPreconditions 0.3.0

GNPreconditions 0.3.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Oct 2016

Maintained by Games Neox.



 
Depends on:
GNExceptions>= 0
GNLog>= 0
 

  • By
  • Games Neox

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

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Minimum supported iOS version: 8.x
Dependencies: GNExceptions & GNLog

Installation

GNPreconditions is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "GNPreconditions"

Author

Games Neox, [email protected]

License

GNPreconditions is available under the MIT license. See the LICENSE file for more info.