1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
-
-
- #import <Foundation/Foundation.h>
-
- @interface OCMArg : NSObject
-
-
-
- + (id)any;
- + (SEL)anySelector;
- + (void *)anyPointer;
- + (id __autoreleasing *)anyObjectRef;
- + (id)isNil;
- + (id)isNotNil;
- + (id)isEqual:(id)value;
- + (id)isNotEqual:(id)value;
- + (id)isKindOfClass:(Class)cls;
- + (id)checkWithSelector:(SEL)selector onObject:(id)anObject;
- + (id)checkWithBlock:(BOOL (^)(id obj))block;
-
-
-
- + (id *)setTo:(id)value;
- + (void *)setToValue:(NSValue *)value;
- + (id)invokeBlock;
- + (id)invokeBlockWithArgs:(id)first,... NS_REQUIRES_NIL_TERMINATION;
-
- + (id)defaultValue;
-
-
-
- + (id)resolveSpecialValues:(NSValue *)value;
-
- @end
-
- #define OCMOCK_ANY [OCMArg any]
-
- #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
- #define OCMOCK_VALUE(variable) \
- ({ __typeof__(variable) __v = (variable); [NSValue value:&__v withObjCType:@encode(__typeof__(__v))]; })
- #else
- #define OCMOCK_VALUE(variable) [NSValue value:&variable withObjCType:@encode(__typeof__(variable))]
- #endif
-
|