Skip to content

Commit

Permalink
NSKVOSupport: Move ivar block to declaration
Browse files Browse the repository at this point in the history
GCC does not support private ivar definitions in the implementation
block.
  • Loading branch information
hmelder committed Dec 2, 2024
1 parent dec6723 commit 847ac08
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Tests/base/NSKVOSupport/proxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@

#import "Testing.h"

/**
* The new KVO implementation for libobjc2/clang, located in Source/NSKVO*, reuses
* or installs a hidden class and subsequently adds the swizzled method to the
* hidden class. Make sure that the invocation mechanism calls the swizzled method.
*/

@interface Observee : NSObject
{
Expand Down Expand Up @@ -92,15 +97,15 @@ - (void) dealloc
@end

@interface Observer: NSObject
{
int count;
}

- (void)runTest;

@end

@implementation Observer
{
int count;
}

- (void)runTest
{
Expand Down

0 comments on commit 847ac08

Please sign in to comment.