Skip to content

Commit

Permalink
Fixed merge conflict.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdoe committed Jan 11, 2021
2 parents 06e8a9a + a1b2394 commit 44207bd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Source/OCMock/NSObject+OCMAdditions.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,15 @@
* under the License.
*/

#import <objc/message.h>
#import <objc/runtime.h>
#import "NSMethodSignature+OCMAdditions.h"
#import "NSObject+OCMAdditions.h"


@implementation NSObject(OCMAdditions)

+ (IMP)instanceMethodForwarderForSelector:(SEL)aSelector
{
// use sel_registerName() and not @selector to avoid warning
SEL selectorWithNoImplementation = sel_registerName("methodWhichMustNotExist::::");

#ifndef __arm64__
static NSMutableDictionary *_OCMReturnTypeCache;

Expand All @@ -49,10 +46,10 @@ + (IMP)instanceMethodForwarderForSelector:(SEL)aSelector
}

if(needsStructureReturn)
return class_getMethodImplementation_stret([NSObject class], selectorWithNoImplementation);
return _objc_msgForward_stret;
#endif

return class_getMethodImplementation([NSObject class], selectorWithNoImplementation);
return _objc_msgForward;
}

+ (void)enumerateMethodsInClass:(Class)aClass usingBlock:(void (^)(Class cls, SEL sel))aBlock
Expand Down

0 comments on commit 44207bd

Please sign in to comment.