1 //---------------------------------------------------------------------------------------
3 // Copyright (c) 2009-2010 by Mulle Kybernetik. See License file for details.
4 //---------------------------------------------------------------------------------------
6 #import <Foundation/Foundation.h>
8 @interface OCMArg
: NSObject
10 // constraining arguments
16 + (id
)isNotEqual
:(id
)value
;
17 + (id
)checkWithSelector
:(SEL
)selector onObject
:(id
)anObject
;
18 #if NS_BLOCKS_AVAILABLE
19 + (id
)checkWithBlock
:(BOOL (^)(id
))block
;
22 // manipulating arguments
24 + (id
*)setTo
:(id
)value
;
28 + (id
)resolveSpecialValues
:(NSValue
*)value
;
32 #define OCMOCK_ANY [OCMArg any]
33 #define OCMOCK_VALUE(variable) [NSValue value:&variable withObjCType:@encode(__typeof__(variable))]